ref: 9ffce06c773b53e4d509420227df7bd88e0f2e74
parent: d814c5d2832e721d1740631ae41fc4268445b372
author: Jean-Marc Valin <[email protected]>
date: Mon Nov 4 16:16:00 EST 2013
This should be less confusing for static analyzers Code behaviour is unchanged
--- a/silk/NLSF_del_dec_quant.c
+++ b/silk/NLSF_del_dec_quant.c
@@ -121,7 +121,7 @@
RD_Q25[ j + nStates ] = silk_SMLABB( silk_MLA( RD_tmp_Q25, silk_SMULBB( diff_Q10, diff_Q10 ), w_Q5[ i ] ), mu_Q20, rate1_Q5 );
}
- if( nStates < NLSF_QUANT_DEL_DEC_STATES ) {
+ if( nStates <= ( NLSF_QUANT_DEL_DEC_STATES >> 1 ) ) {
/* double number of states and copy */
for( j = 0; j < nStates; j++ ) {
ind[ j + nStates ][ i ] = ind[ j ][ i ] + 1;