[MPlayer-cvslog] CVS: main/libmpdemux demux_lavf.c,1.12,1.13

Michael Niedermayer CVS syncmail at mplayerhq.hu
Fri Mar 25 12:09:44 CET 2005


CVS change done by Michael Niedermayer CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv31782

Modified Files:
	demux_lavf.c 
Log Message:
set i_bps


Index: demux_lavf.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_lavf.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- demux_lavf.c	25 Mar 2005 00:48:18 -0000	1.12
+++ demux_lavf.c	25 Mar 2005 11:09:42 -0000	1.13
@@ -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);




More information about the MPlayer-cvslog mailing list