shithub: opus

Download patch

ref: 3beb70e54926899dc67f46005662c663babf4bf4
parent: c79c4e3bc7270b08a2800a2dd9d9a5f02767024d
author: Jean-Marc Valin <[email protected]>
date: Tue Mar 1 13:08:15 EST 2011

Fix effectiveBytes computation for VBR

--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -952,7 +952,7 @@
    {
       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;