From 078ef11ddaf14591b02d016609024f262606c9af Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 25 Mar 2005 11:09:42 +0000 Subject: set i_bps git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15008 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_lavf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libmpdemux/demux_lavf.c b/libmpdemux/demux_lavf.c index 504eb819ec..687e3a0a7e 100644 --- a/libmpdemux/demux_lavf.c +++ b/libmpdemux/demux_lavf.c @@ -197,6 +197,7 @@ int demux_open_lavf(demuxer_t *demuxer){ 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 @@ int demux_open_lavf(demuxer_t *demuxer){ 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); -- cgit v1.2.3