shithub: opus

Download patch

ref: 1928f8df65bd2adc8e6c51317c5c454e0e868b35
parent: 7007f1b8233093b0f34d5cc2970fafac3dbf3b45
author: Gregory Maxwell <[email protected]>
date: Tue Feb 8 17:32:56 EST 2011

CELT_SET_END_BAND_REQUEST in the decoder was performing the wrong bounds check and not allowing a change to fullband.

--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -2589,7 +2589,7 @@
       case CELT_SET_END_BAND_REQUEST:
       {
          celt_int32 value = va_arg(ap, celt_int32);
-         if (value<0 || value>=st->mode->nbEBands)
+         if (value<1 || value>st->mode->nbEBands)
             goto bad_arg;
          st->end = value;
       }