changeset 15276:f331ff9ff453

10l, fix wrong byterate in waveformat
author nicodvb
date Wed, 27 Apr 2005 18:16:00 +0000
parents 0e350095a07b
children fed5d4ab5e5f
files libmpcodecs/ae_faac.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ae_faac.c	Wed Apr 27 14:55:30 2005 +0000
+++ b/libmpcodecs/ae_faac.c	Wed Apr 27 18:16:00 2005 +0000
@@ -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;