From 1928f8df65bd2adc8e6c51317c5c454e0e868b35 Mon Sep 17 00:00:00 2001 From: Gregory Maxwell Date: Tue, 8 Feb 2011 22:32:56 -0500 Subject: CELT_SET_END_BAND_REQUEST in the decoder was performing the wrong bounds check and not allowing a change to fullband. --- libcelt/celt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3