Hardening asserts for SILK float
This commit is contained in:
parent
7e3352ef51
commit
e69fc1995e
11 changed files with 32 additions and 32 deletions
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue