diff options
author | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | 2011-02-12 05:56:11 +0300 |
---|---|---|
committer | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | 2011-02-12 05:56:45 +0300 |
commit | fa74ae26c4ac0856cbff7a35c2f2b774a1b144b7 (patch) | |
tree | 8b4d3104805de9b775a136ef85ec551cdee95aa7 | |
parent | a14e86d904c58da9101e1183cfd7e1f9c1005339 (diff) |
Fix for layouts of 22 band and more
-rw-r--r-- | libcelt/modes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcelt/modes.c b/libcelt/modes.c index 4d39417..7649143 100644 --- a/libcelt/modes.c +++ b/libcelt/modes.c @@ -214,7 +214,7 @@ static void compute_allocation_table(CELTMode *mode) if (400*(celt_int32)eband5ms[k] > mode->eBands[j]*(celt_int32)mode->Fs/mode->shortMdctSize) break; } - if (k>mode->nbEBands-1) + if (k>maxBands-1) allocVectors[i*mode->nbEBands+j] = band_allocation[i*maxBands + maxBands-1]; else { celt_int32 a0, a1; |