Commit 3beb70e5 authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Fix effectiveBytes computation for VBR

parent c79c4e3b
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment