diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2018-03-24 02:16:15 -0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2018-03-27 15:13:27 -0400 |
commit | 7e3352ef517379c9ab42a2416b444882ff86aec6 (patch) | |
tree | 0d53c0120e5225689563dc4cf7cd1632df6cabbb /silk/PLC.c | |
parent | 69bcb28d3ddb20231580bd09e44d87a769dabcb7 (diff) | |
download | opus-7e3352ef517379c9ab42a2416b444882ff86aec6.tar.gz |
Converting some silk_assert()s into hardening celt_assert()s
Only converted the ones that are really sure (not signal-dependent)
and that shouldn't add much run-time complexity
Diffstat (limited to 'silk/PLC.c')
-rw-r--r-- | silk/PLC.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -291,7 +291,7 @@ static OPUS_INLINE void silk_PLC_conceal( /* Rewhiten LTP state */ idx = psDec->ltp_mem_length - lag - psDec->LPC_order - LTP_ORDER / 2; - silk_assert( idx > 0 ); + celt_assert( idx > 0 ); silk_LPC_analysis_filter( &sLTP[ idx ], &psDec->outBuf[ idx ], A_Q12, psDec->ltp_mem_length - idx, psDec->LPC_order, arch ); /* Scale LTP state */ inv_gain_Q30 = silk_INVERSE32_varQ( psPLC->prevGain_Q16[ 1 ], 46 ); @@ -347,7 +347,7 @@ static OPUS_INLINE void silk_PLC_conceal( /* Copy LPC state */ silk_memcpy( sLPC_Q14_ptr, psDec->sLPC_Q14_buf, MAX_LPC_ORDER * sizeof( opus_int32 ) ); - silk_assert( psDec->LPC_order >= 10 ); /* check that unrolling works */ + celt_assert( psDec->LPC_order >= 10 ); /* check that unrolling works */ for( i = 0; i < psDec->frame_length; i++ ) { /* partly unrolled */ /* Avoids introducing a bias because silk_SMLAWB() always rounds to -inf */ |