Fixes misleading initialization with not enough zeros

This commit is contained in:
Jean-Marc Valin 2018-10-16 15:48:31 -04:00
parent 04e07d2f63
commit befb83bab4
No known key found for this signature in database
GPG key ID: 5E5DD9A36F9189C8

View file

@ -42,8 +42,8 @@ void silk_warped_autocorrelation_FLP(
{
opus_int n, i;
double tmp1, tmp2;
double state[ MAX_SHAPE_LPC_ORDER + 1 ] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 };
double C[ MAX_SHAPE_LPC_ORDER + 1 ] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 };
double state[ MAX_SHAPE_LPC_ORDER + 1 ] = { 0 };
double C[ MAX_SHAPE_LPC_ORDER + 1 ] = { 0 };
/* Order must be even */
celt_assert( ( order & 1 ) == 0 );