Commit 1928f8df authored by Gregory Maxwell's avatar Gregory Maxwell Committed by Jean-Marc Valin
Browse files

CELT_SET_END_BAND_REQUEST in the decoder was performing the wrong bounds check...

CELT_SET_END_BAND_REQUEST in the decoder was performing the wrong bounds check and not allowing a change to fullband.
parent 7007f1b8
...@@ -2589,7 +2589,7 @@ int celt_decoder_ctl(CELTDecoder * restrict st, int request, ...) ...@@ -2589,7 +2589,7 @@ int celt_decoder_ctl(CELTDecoder * restrict st, int request, ...)
case CELT_SET_END_BAND_REQUEST: case CELT_SET_END_BAND_REQUEST:
{ {
celt_int32 value = va_arg(ap, celt_int32); 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; goto bad_arg;
st->end = value; st->end = value;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment