[MPlayer-cvslog] CVS: main/libmpcodecs ae_faac.c,1.1,1.2

Nico Sabbi CVS syncmail at mplayerhq.hu
Wed Apr 27 20:16:03 CEST 2005


CVS change done by Nico Sabbi CVS

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

Modified Files:
	ae_faac.c 
Log Message:
10l, fix wrong byterate in waveformat

Index: ae_faac.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ae_faac.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ae_faac.c	25 Apr 2005 07:07:57 -0000	1.1
+++ ae_faac.c	27 Apr 2005 18:16:00 -0000	1.2
@@ -55,7 +55,7 @@
 	mux_a->h.dwRate=encoder->params.sample_rate;
 	mux_a->h.dwScale=encoder->params.samples_per_frame;
 	mux_a->wf->nSamplesPerSec=mux_a->h.dwRate;
-	mux_a->wf->nAvgBytesPerSec = 125 * encoder->params.bitrate;
+	mux_a->wf->nAvgBytesPerSec = encoder->params.bitrate / 8;
 	
 	mux_a->wf->nBlockAlign = mux_a->h.dwScale;
 	mux_a->h.dwSuggestedBufferSize = (encoder->params.audio_preload*mux_a->wf->nAvgBytesPerSec)/1000;




More information about the MPlayer-cvslog mailing list