diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-11-11 22:06:54 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-11-11 22:06:54 +0400 |
commit | f6066df2b9f8231ba3d5df27962e05cb658aac1f (patch) | |
tree | 64dca23e2b199171e0486f0d5e051a5ec6fecbe8 /silk | |
parent | ca6fac041bc6ffe4a8b21eb6ee429dd32d803764 (diff) |
More size-zero VLA fixes and making opus_decode* return BAD_ARG on framesize<0
Diffstat (limited to 'silk')
-rw-r--r-- | silk/fixed/pitch_analysis_core_FIX.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/silk/fixed/pitch_analysis_core_FIX.c b/silk/fixed/pitch_analysis_core_FIX.c index b6bc0bbf..b2c6cbb4 100644 --- a/silk/fixed/pitch_analysis_core_FIX.c +++ b/silk/fixed/pitch_analysis_core_FIX.c @@ -465,7 +465,7 @@ opus_int silk_pitch_analysis_core( /* O Voicing estimate: 0 /***************************************************************************/ /* find scaling as max scaling for each subframe */ silk_sum_sqr_shift( &energy, &shift, frame, frame_length ); - ALLOC( scratch_mem, shift > 0 ? frame_length : 0, opus_int16 ); + ALLOC( scratch_mem, shift > 0 ? frame_length : ALLOC_NONE, opus_int16 ); if( shift > 0 ) { /* Move signal to scratch mem because the input signal should be unchanged */ shift = silk_RSHIFT( shift, 1 ); |