Fixes a bug that could turn off folding at low rate when specifying
authorJean-Marc Valin <jean-marc.valin@octasic.com>
Tue, 20 Jul 2010 21:30:31 +0000 (17:30 -0400)
committerJean-Marc Valin <jean-marc.valin@octasic.com>
Tue, 20 Jul 2010 21:30:31 +0000 (17:30 -0400)
a start band.

libcelt/bands.c

index b995478..5deca8b 100644 (file)
@@ -942,7 +942,7 @@ void quant_all_bands(int encode, const CELTMode *m, int start, int end, celt_nor
 
       if (M*eBands[i]-N >= M*eBands[start])
       {
-         if (update_lowband)
+         if (update_lowband || lowband==NULL)
             lowband = norm+M*eBands[i]-N;
       } else
          lowband = NULL;