[MPlayer-cvslog] CVS: main mencoder.c,1.271,1.272

Nico Sabbi CVS syncmail at mplayerhq.hu
Mon Mar 7 23:00:32 CET 2005


CVS change done by Nico Sabbi CVS

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

Modified Files:
	mencoder.c 
Log Message:
set AvgBytesPerSecond to the correct value if encoding with mp3lame in cbr mode

Index: mencoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/mencoder.c,v
retrieving revision 1.271
retrieving revision 1.272
diff -u -r1.271 -r1.272
--- mencoder.c	1 Mar 2005 20:21:58 -0000	1.271
+++ mencoder.c	7 Mar 2005 22:00:29 -0000	1.272
@@ -873,7 +873,10 @@
     mux_a->wf->nChannels= (lame_param_mode<0) ? sh_audio->channels :
 	((lame_param_mode==3) ? 1 : 2);
     mux_a->wf->nSamplesPerSec=mux_a->h.dwRate;
-    mux_a->wf->nAvgBytesPerSec=192000/8; // FIXME!
+    if(! lame_param_vbr)
+        mux_a->wf->nAvgBytesPerSec=lame_param_br * 125;
+    else
+        mux_a->wf->nAvgBytesPerSec=192000/8; // FIXME!
     mux_a->wf->nBlockAlign=(mux_a->h.dwRate<32000)?576:1152; // required for l3codeca.acm + WMP 6.4
     mux_a->wf->wBitsPerSample=0; //16;
     // from NaNdub:  (requires for l3codeca.acm)




More information about the MPlayer-cvslog mailing list