From 33ba6cc6b6e9b33f7070301d9634d87b1d42fbe7 Mon Sep 17 00:00:00 2001 From: Wessel Lubberhuizen Date: Fri, 3 Oct 2008 07:09:29 -0400 Subject: [PATCH] fix stack handling --- libcelt/celt.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/libcelt/celt.c b/libcelt/celt.c index 002fd083..2019cc48 100644 --- a/libcelt/celt.c +++ b/libcelt/celt.c @@ -674,6 +674,7 @@ int celt_encode_float(CELTEncoder * restrict st, const float * pcm, float * opti const int C = CHANNELS(st->mode); const int N = st->block_size; VARDECL(celt_int16_t, in); + SAVE_STACK; ALLOC(in, C*N, celt_int16_t); for (j=0;jmode); const int N = st->block_size; - + SAVE_STACK; ALLOC(in, C*N, celt_sig_t); for (j=0;jmode); const int N = st->block_size; VARDECL(celt_int16_t, out); + SAVE_STACK; ALLOC(out, C*N, celt_int16_t); ret=celt_decode(st, data, len, out); for (j=0;jmode); const int N = st->block_size; - + SAVE_STACK; ALLOC(out, C*N, celt_sig_t); ret=celt_decode_float(st, data, len, out); @@ -1073,6 +1076,7 @@ int celt_decode(CELTDecoder * restrict st, unsigned char *data, int len, celt_in for (j=0;j