Fix effectiveBytes computation for VBR
This commit is contained in:
parent
c79c4e3bc7
commit
3beb70e549
1 changed files with 1 additions and 1 deletions
|
@ -952,7 +952,7 @@ int celt_encode_with_ec_float(CELTEncoder * restrict st, const celt_sig * pcm, i
|
|||
{
|
||||
celt_int32 den=st->mode->Fs>>BITRES;
|
||||
vbr_rate=(st->bitrate*frame_size+(den>>1))/den;
|
||||
effectiveBytes = vbr_rate>>3;
|
||||
effectiveBytes = vbr_rate>>(3+BITRES);
|
||||
} else {
|
||||
celt_int32 tmp;
|
||||
vbr_rate = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue