shithub: opus

Download patch

ref: be8d1259af0a91d0a0f7eff5a262e2c1745ba48b
parent: 6578ea0e2681ca45dda114e7f9c2256c293dc918
author: Jean-Marc Valin <[email protected]>
date: Wed Apr 21 14:09:07 EDT 2010

Minor tweak to the band layout offset

--- a/libcelt/modes.c
+++ b/libcelt/modes.c
@@ -149,6 +149,8 @@
    /* 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++)
    {