diff options
author | Gregory Maxwell <greg@xiph.org> | 2011-10-04 05:07:39 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2011-10-04 05:38:21 +0400 |
commit | 5d5875a93a5c15566c6dfbadf7180858705af517 (patch) | |
tree | 8f6c8a9f4d430a5291d8efc38e2c395cb8f65d5f /silk/NSQ_del_dec.c | |
parent | 4a7c9859cbea913e2d024d523cc10f2bd955d540 (diff) |
Add the noreturn attribute on the assert functions to aid static analysis, improve test_repacketizer error handling, and silence 19 clang static analysis errors with additional assertions.
Diffstat (limited to 'silk/NSQ_del_dec.c')
-rw-r--r-- | silk/NSQ_del_dec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/silk/NSQ_del_dec.c b/silk/NSQ_del_dec.c index f2d3c7c1..52295caf 100644 --- a/silk/NSQ_del_dec.c +++ b/silk/NSQ_del_dec.c @@ -335,6 +335,8 @@ static inline void silk_noise_shape_quantizer_del_dec( NSQ_del_dec_struct *psDD; NSQ_sample_struct *psSS; + silk_assert( nStatesDelayedDecision > 0 ); + shp_lag_ptr = &NSQ->sLTP_shp_Q10[ NSQ->sLTP_shp_buf_idx - lag + HARM_SHAPE_FIR_TAPS / 2 ]; pred_lag_ptr = &sLTP_Q16[ NSQ->sLTP_buf_idx - lag + LTP_ORDER / 2 ]; |