Minor tweak to the band layout offset
authorJean-Marc Valin <jean-marc.valin@octasic.com>
Wed, 21 Apr 2010 22:09:07 +0000 (18:09 -0400)
committerJean-Marc Valin <jean-marc.valin@octasic.com>
Wed, 21 Apr 2010 22:09:07 +0000 (18:09 -0400)
libcelt/modes.c

index 2ec547a..7447a5c 100644 (file)
@@ -149,6 +149,8 @@ static celt_int16 *compute_ebands(celt_int32 Fs, int frame_size, int nbShortMdct
    /* Linear spacing (min_width) */
    for (i=0;i<low;i++)
       eBands[i] = min_bins*i;
+   if (low>0)
+      offset = eBands[low-1]*res - bark_freq[lin-1];
    /* Spacing follows critical bands */
    for (i=0;i<high;i++)
    {