1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-08 15:18:00 +00:00

10l, fix wrong byterate in waveformat

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15277 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nicodvb 2005-04-27 18:16:00 +00:00
parent d59bfa633d
commit be24ca6c1c

View File

@ -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;