shithub: opus

Download patch

ref: fa1ca19934fe02078a4053d725b8343473f5a730
parent: a3a066cb6103c21daf8d9a14acc18f12202d7f5b
author: Jean-Marc Valin <[email protected]>
date: Thu Nov 4 11:59:44 EDT 2010

Make sure that we always code the sign of N=1 bands

(unless there's no bit left at all in the frame)

--- a/libcelt/bands.c
+++ b/libcelt/bands.c
@@ -512,7 +512,7 @@
       for (c=0;c<1+stereo;c++)
       {
          int sign=0;
-         if (b>=1<<BITRES && *remaining_bits>=1<<BITRES)
+         if (*remaining_bits>=1<<BITRES)
          {
             if (encode)
             {