Some work towards being able to encode a 48 kHz stream from 32 kHz audio (incomplete)
diff --git a/libcelt/modes.c b/libcelt/modes.c
index af2d007..3e14dbb 100644
--- a/libcelt/modes.c
+++ b/libcelt/modes.c
@@ -389,6 +389,9 @@
    if (mode->eBands==NULL)
       goto failure;
 
+   mode->effEBands = mode->nbEBands;
+   while (mode->eBands[mode->effEBands] > mode->shortMdctSize)
+      mode->effEBands--;
    mode->pitchEnd = 4000*(celt_int32)mode->shortMdctSize/Fs;
    
    /* Overlap must be divisible by 4 */