compute_alloc_cache() isn't defined when STATIC_MODES is.

This commit is contained in:
Jean-Marc Valin 2008-10-02 23:52:46 -04:00
parent f3190f26b9
commit b0bef8564e

View file

@ -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
@ -409,9 +411,6 @@ CELTMode *celt_mode_create(celt_int32_t Fs, int channels, int frame_size, int *e
mode->shortWindow = mode->window;
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;