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:
nicodvb 2005-03-07 22:00:29 +00:00
parent f955afd56c
commit 883b0fad3e
1 changed files with 4 additions and 1 deletions

View File

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