mirror of
https://github.com/xiph/opus.git
synced 2025-05-29 06:39:15 +00:00
Store decoded SILK pulses as 16-bit vector
This saves 640 bytes on the peak stack usage.
This commit is contained in:
parent
ad8371d172
commit
dce69d2b9b
7 changed files with 17 additions and 17 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue