summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmpcodecs/ae_faac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpcodecs/ae_faac.c b/libmpcodecs/ae_faac.c
index c241ca1d7b..2deca5932f 100644
--- a/libmpcodecs/ae_faac.c
+++ b/libmpcodecs/ae_faac.c
@@ -55,7 +55,7 @@ static int bind_faac(audio_encoder_t *encoder, muxer_stream_t *mux_a)
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;