summaryrefslogtreecommitdiff
path: root/silk/PLC.c
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2018-03-24 02:16:15 -0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2018-03-27 15:13:27 -0400
commit7e3352ef517379c9ab42a2416b444882ff86aec6 (patch)
tree0d53c0120e5225689563dc4cf7cd1632df6cabbb /silk/PLC.c
parent69bcb28d3ddb20231580bd09e44d87a769dabcb7 (diff)
downloadopus-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/silk/PLC.c b/silk/PLC.c
index a3e55ea7..f8939165 100644
--- a/silk/PLC.c
+++ b/silk/PLC.c
@@ -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 */