mirror of https://github.com/mpv-player/mpv
set AvgBytesPerSecond to the correct value if encoding with mp3lame in cbr mode
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14929 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f955afd56c
commit
883b0fad3e
|
@ -873,7 +873,10 @@ case ACODEC_VBRMP3:
|
|||
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)
|
||||
|
|
Loading…
Reference in New Issue