Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/celt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2011-02-09 06:32:56 +0300
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>2011-02-09 06:35:29 +0300
commit1928f8df65bd2adc8e6c51317c5c454e0e868b35 (patch)
treee32f8caa8aa9cf456649533570a2b6a96bd2464c
parent7007f1b8233093b0f34d5cc2970fafac3dbf3b45 (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.c2
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;
}