mirror of
https://github.com/xiph/opus.git
synced 2025-06-03 00:57:43 +00:00
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
This commit is contained in:
parent
69bcb28d3d
commit
7e3352ef51
29 changed files with 96 additions and 96 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue