diff --git a/libcelt/celt.c b/libcelt/celt.c index 23d2e3088e644a2c1f81502dd79bf7998f881f33..1fcda8c2b56927a7a884c76d3b2a86c94813932d 100644 --- a/libcelt/celt.c +++ b/libcelt/celt.c @@ -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;