commit | be8d1259af0a91d0a0f7eff5a262e2c1745ba48b | [log] [tgz] |
---|---|---|
author | Jean-Marc Valin <jean-marc.valin@octasic.com> | Wed Apr 21 18:09:07 2010 -0400 |
committer | Jean-Marc Valin <jean-marc.valin@octasic.com> | Wed Apr 21 18:09:07 2010 -0400 |
tree | 8ae6c6c9712403919e767fbf1dbb3ea381af8859 | |
parent | 6578ea0e2681ca45dda114e7f9c2256c293dc918 [diff] [blame] |
Minor tweak to the band layout offset
diff --git a/libcelt/modes.c b/libcelt/modes.c index 2ec547a..7447a5c 100644 --- 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++) {