Including redundant frames in the final range coder state

This commit is contained in:
Jean-Marc Valin 2011-08-19 16:11:41 -04:00
parent 06677d7368
commit 06cee2b1b4
4 changed files with 29 additions and 3 deletions

View file

@ -1838,6 +1838,14 @@ int celt_encoder_ctl(CELTEncoder * restrict st, int request, ...)
*value=st->mode;
}
break;
case CELT_GET_RANGE_REQUEST:
{
opus_uint32 * value = va_arg(ap, opus_uint32 *);
if (value==0)
goto bad_arg;
*value=st->rng;
}
break;
#endif
default:
goto bad_request;
@ -2741,6 +2749,14 @@ int celt_decoder_ctl(CELTDecoder * restrict st, int request, ...)
st->signalling = value;
}
break;
case CELT_GET_RANGE_REQUEST:
{
opus_uint32 * value = va_arg(ap, opus_uint32 *);
if (value==0)
goto bad_arg;
*value=st->rng;
}
break;
#endif
default:
goto bad_request;