Fix for global stack

This commit is contained in:
Jean-Marc Valin 2011-03-09 11:56:29 -05:00
parent 9bac8c17d5
commit f62b3bb96d

View file

@ -915,6 +915,7 @@ int celt_encode_with_ec_float(CELTEncoder * restrict st, const celt_sig * pcm, i
int anti_collapse_rsv;
int anti_collapse_on=0;
int silence=0;
ALLOC_STACK;
SAVE_STACK;
if (nbCompressedBytes<2 || pcm==NULL)
@ -2204,7 +2205,7 @@ int celt_decode_with_ec_float(CELTDecoder * restrict st, const unsigned char *da
int anti_collapse_on=0;
int silence;
const int C = CHANNELS(st->stream_channels);
ALLOC_STACK;
SAVE_STACK;
if (len<0 || len>1275 || pcm==NULL)