shithub: opus

Download patch

ref: fa74ae26c4ac0856cbff7a35c2f2b774a1b144b7
parent: a14e86d904c58da9101e1183cfd7e1f9c1005339
author: Jean-Marc Valin <[email protected]>
date: Fri Feb 11 16:56:11 EST 2011

Fix for layouts of 22 band and more

--- a/libcelt/modes.c
+++ b/libcelt/modes.c
@@ -214,7 +214,7 @@
             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;