Mercurial > mplayer.hg
changeset 15007:c03962274c4b
set i_bps
author | michael |
---|---|
date | Fri, 25 Mar 2005 11:09:42 +0000 |
parents | 8f8bbe639bfb |
children | 0a43341c8bfd |
files | libmpdemux/demux_lavf.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c Fri Mar 25 04:40:59 2005 +0000 +++ b/libmpdemux/demux_lavf.c Fri Mar 25 11:09:42 2005 +0000 @@ -197,6 +197,7 @@ sh_audio->format= codec->codec_tag; sh_audio->channels= codec->channels; sh_audio->samplerate= codec->sample_rate; + sh_audio->i_bps= codec->bit_rate/8; if(verbose>=1) print_wave_header(sh_audio->wf); if(demuxer->audio->id != i && demuxer->audio->id != -1) st->discard= AVDISCARD_ALL; @@ -228,6 +229,7 @@ sh_video->format = bih->biCompression; sh_video->aspect= codec->width * codec->sample_aspect_ratio.num / (float)(codec->height * codec->sample_aspect_ratio.den); + sh_video->i_bps= codec->bit_rate/8; mp_msg(MSGT_DEMUX,MSGL_DBG2,"aspect= %d*%d/(%d*%d)\n", codec->width, codec->sample_aspect_ratio.num, codec->height, codec->sample_aspect_ratio.den);