mirror of
https://github.com/xiph/opus.git
synced 2025-06-06 07:21:03 +00:00
compute_alloc_cache() isn't defined when STATIC_MODES is.
This commit is contained in:
parent
f3190f26b9
commit
b0bef8564e
1 changed files with 2 additions and 3 deletions
|
@ -392,6 +392,8 @@ CELTMode *celt_mode_create(celt_int32_t Fs, int channels, int frame_size, int *e
|
|||
mode->window = window;
|
||||
|
||||
mode->bits = (const celt_int16_t **)compute_alloc_cache(mode, 1);
|
||||
if (mode->nbChannels>=2)
|
||||
mode->bits_stereo = (const celt_int16_t **)compute_alloc_cache(mode, mode->nbChannels);
|
||||
|
||||
mode->bits_stereo = NULL;
|
||||
#ifndef SHORTCUTS
|
||||
|
@ -410,9 +412,6 @@ CELTMode *celt_mode_create(celt_int32_t Fs, int channels, int frame_size, int *e
|
|||
|
||||
mode->prob = quant_prob_alloc(mode);
|
||||
|
||||
if (mode->nbChannels>=2)
|
||||
mode->bits_stereo = (const celt_int16_t **)compute_alloc_cache(mode, mode->nbChannels);
|
||||
|
||||
if (error)
|
||||
*error = CELT_OK;
|
||||
return mode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue