Mercurial > mplayer.hg
changeset 14928:35e2d178be91
set AvgBytesPerSecond to the correct value if encoding with mp3lame in cbr mode
author | nicodvb |
---|---|
date | Mon, 07 Mar 2005 22:00:29 +0000 |
parents | 4aa57ea6d129 |
children | 3febdb2983e0 |
files | mencoder.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mencoder.c Mon Mar 07 07:36:27 2005 +0000 +++ b/mencoder.c Mon Mar 07 22:00:29 2005 +0000 @@ -873,7 +873,10 @@ 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)