diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-03-07 22:00:29 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-03-07 22:00:29 +0000 |
commit | 883b0fad3ee9db7f2ff186f72291f34125552c6c (patch) | |
tree | 69003af0fd264af0a13f0e31b8997b80508dd679 | |
parent | f955afd56c81b4202fc7ee279947749ec0619d7c (diff) | |
download | mpv-883b0fad3ee9db7f2ff186f72291f34125552c6c.tar.bz2 mpv-883b0fad3ee9db7f2ff186f72291f34125552c6c.tar.xz |
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
-rw-r--r-- | mencoder.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mencoder.c b/mencoder.c index 78a5e22992..5f47bcb4b0 100644 --- a/mencoder.c +++ b/mencoder.c @@ -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) |