Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2018-03-24 09:16:15 +0300
committerJean-Marc Valin <jmvalin@jmvalin.ca>2018-03-27 22:13:27 +0300
commit7e3352ef517379c9ab42a2416b444882ff86aec6 (patch)
tree0d53c0120e5225689563dc4cf7cd1632df6cabbb /silk/stereo_encode_pred.c
parent69bcb28d3ddb20231580bd09e44d87a769dabcb7 (diff)
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/stereo_encode_pred.c')
-rw-r--r--silk/stereo_encode_pred.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/silk/stereo_encode_pred.c b/silk/stereo_encode_pred.c
index e6dd1950..03becb67 100644
--- a/silk/stereo_encode_pred.c
+++ b/silk/stereo_encode_pred.c
@@ -41,11 +41,11 @@ void silk_stereo_encode_pred(
/* Entropy coding */
n = 5 * ix[ 0 ][ 2 ] + ix[ 1 ][ 2 ];
- silk_assert( n < 25 );
+ celt_assert( n < 25 );
ec_enc_icdf( psRangeEnc, n, silk_stereo_pred_joint_iCDF, 8 );
for( n = 0; n < 2; n++ ) {
- silk_assert( ix[ n ][ 0 ] < 3 );
- silk_assert( ix[ n ][ 1 ] < STEREO_QUANT_SUB_STEPS );
+ celt_assert( ix[ n ][ 0 ] < 3 );
+ celt_assert( ix[ n ][ 1 ] < STEREO_QUANT_SUB_STEPS );
ec_enc_icdf( psRangeEnc, ix[ n ][ 0 ], silk_uniform3_iCDF, 8 );
ec_enc_icdf( psRangeEnc, ix[ n ][ 1 ], silk_uniform5_iCDF, 8 );
}