diff options
author | Gregory Maxwell <greg@xiph.org> | 2011-02-09 06:32:56 +0300 |
---|---|---|
committer | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | 2011-02-09 06:35:29 +0300 |
commit | 1928f8df65bd2adc8e6c51317c5c454e0e868b35 (patch) | |
tree | e32f8caa8aa9cf456649533570a2b6a96bd2464c | |
parent | 7007f1b8233093b0f34d5cc2970fafac3dbf3b45 (diff) |
CELT_SET_END_BAND_REQUEST in the decoder was performing the wrong bounds check and not allowing a change to fullband.
-rw-r--r-- | libcelt/celt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcelt/celt.c b/libcelt/celt.c index d29880a..9641075 100644 --- a/libcelt/celt.c +++ b/libcelt/celt.c @@ -2589,7 +2589,7 @@ int celt_decoder_ctl(CELTDecoder * restrict st, int request, ...) 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; } |