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:
Diffstat (limited to 'libcelt')
-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;
}