shithub: opus

Download patch

ref: df6620eb0b691e68faf10a7311baabe2d11531c4
parent: 66c5ab4f070335ec03f80337761f613851139237
author: Jean-Marc Valin <[email protected]>
date: Thu Dec 16 08:07:29 EST 2010

Setting fine_priority for skipped bands

--- a/libcelt/rate.c
+++ b/libcelt/rate.c
@@ -351,7 +351,7 @@
       ebits[j] = bits[j]/C >> BITRES;
       celt_assert(C*ebits[j]<<BITRES == bits[j]);
       bits[j] = 0;
-      fine_priority[j] = 0;
+      fine_priority[j] = ebits[j]<1;
    }
    RESTORE_STACK;
    return codedBands;