Hardening asserts for SILK float

This commit is contained in:
Jean-Marc Valin 2018-03-26 03:23:09 -04:00
parent 7e3352ef51
commit e69fc1995e
No known key found for this signature in database
GPG key ID: 5E5DD9A36F9189C8
11 changed files with 32 additions and 32 deletions

View file

@ -45,10 +45,10 @@ void silk_apply_sine_window_FLP(
opus_int k;
silk_float freq, c, S0, S1;
silk_assert( win_type == 1 || win_type == 2 );
celt_assert( win_type == 1 || win_type == 2 );
/* Length must be multiple of 4 */
silk_assert( ( length & 3 ) == 0 );
celt_assert( ( length & 3 ) == 0 );
freq = PI / ( length + 1 );