Setting fine_priority for skipped bands
authorJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Thu, 16 Dec 2010 18:07:29 +0000 (13:07 -0500)
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Thu, 16 Dec 2010 18:07:29 +0000 (13:07 -0500)
libcelt/rate.c

index 6fc0c13..4364732 100644 (file)
@@ -351,7 +351,7 @@ static inline int interp_bits2pulses(const CELTMode *m, int start, int end,
       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;