summaryrefslogtreecommitdiff
path: root/silk/decode_frame.c
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2014-01-06 21:59:48 -0500
committerJean-Marc Valin <jmvalin@jmvalin.ca>2014-01-06 21:59:48 -0500
commitdce69d2b9b4f33ecb482023f0fe1230ef5b53235 (patch)
treecbe39b13272b5bc14e1cd25c4001a60cdf7463ee /silk/decode_frame.c
parentad8371d172e930c28bc66da165bf8498c5d16d15 (diff)
downloadopus-dce69d2b9b4f33ecb482023f0fe1230ef5b53235.tar.gz
Store decoded SILK pulses as 16-bit vector
This saves 640 bytes on the peak stack usage.
Diffstat (limited to 'silk/decode_frame.c')
-rw-r--r--silk/decode_frame.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/silk/decode_frame.c b/silk/decode_frame.c
index abc00a3d..1d98267f 100644
--- a/silk/decode_frame.c
+++ b/silk/decode_frame.c
@@ -47,13 +47,13 @@ opus_int silk_decode_frame(
{
VARDECL( silk_decoder_control, psDecCtrl );
opus_int L, mv_len, ret = 0;
- VARDECL( opus_int, pulses );
+ VARDECL( opus_int16, pulses );
SAVE_STACK;
L = psDec->frame_length;
ALLOC( psDecCtrl, 1, silk_decoder_control );
ALLOC( pulses, (L + SHELL_CODEC_FRAME_LENGTH - 1) &
- ~(SHELL_CODEC_FRAME_LENGTH - 1), opus_int );
+ ~(SHELL_CODEC_FRAME_LENGTH - 1), opus_int16 );
psDecCtrl->LTP_scale_Q14 = 0;
/* Safety checks */