diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2014-01-07 15:27:02 -0500 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2014-01-07 15:27:02 -0500 |
commit | e17ca25617009ce0ec7701c08bdb0e367da94ca0 (patch) | |
tree | 77b97422ea86281fb02f0efdee828679e2eae811 /celt | |
parent | b63e7110cb72f48c1319e8848ccf670bcfbe4f63 (diff) | |
download | opus-e17ca25617009ce0ec7701c08bdb0e367da94ca0.tar.gz |
Don't allocate pulses on the stack when calling the SILK PLC.
Also minor C89 fix for the previous commit
Diffstat (limited to 'celt')
-rw-r--r-- | celt/celt_decoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/celt/celt_decoder.c b/celt/celt_decoder.c index 887574b3..fc31094e 100644 --- a/celt/celt_decoder.c +++ b/celt/celt_decoder.c @@ -406,8 +406,8 @@ static void tf_decode(int start, int end, int isTransient, int *tf_res, int LM, static int celt_plc_pitch_search(celt_sig *decode_mem[2], int C, int arch) { int pitch_index; - SAVE_STACK; VARDECL( opus_val16, lp_pitch_buf ); + SAVE_STACK; ALLOC( lp_pitch_buf, DECODE_BUFFER_SIZE>>1, opus_val16 ); pitch_downsample(decode_mem, lp_pitch_buf, DECODE_BUFFER_SIZE, C, arch); |