Removes the celt_mode_info() call.
Adds a CELT_GET_LOOKAHEAD() ctl() call instead. Other uses of celt_mode_info() should not be needed anymore.
This commit is contained in:
parent
d6bf19d22d
commit
ff96b165fe
7 changed files with 23 additions and 56 deletions
|
@ -2748,6 +2748,14 @@ int celt_decoder_ctl(CELTDecoder * restrict st, int request, ...)
|
|||
st->error = 0;
|
||||
}
|
||||
break;
|
||||
case CELT_GET_LOOKAHEAD_REQUEST:
|
||||
{
|
||||
int *value = va_arg(ap, int*);
|
||||
if (value==NULL)
|
||||
goto bad_arg;
|
||||
*value = st->overlap/st->downsample;
|
||||
}
|
||||
break;
|
||||
case CELT_RESET_STATE:
|
||||
{
|
||||
CELT_MEMSET((char*)&st->DECODER_RESET_START, 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue