ref: ad15578102d94ac11c994be87ea11f7a0bdcc99a
parent: abc1a771fc67051b7b60a046d61446b2d6b97f7a
author: Jean-Marc Valin <[email protected]>
date: Sat Feb 18 12:04:24 EST 2017
Fix sum initializer in celt_fir()
--- a/celt/celt_lpc.c
+++ b/celt/celt_lpc.c
@@ -105,10 +105,11 @@
rnum[i] = num[ord-i-1];
for (i=0;i<N-3;i+=4)
{
- opus_val32 sum[4]={SHL32(EXTEND32(x[i ]), SIG_SHIFT),
- SHL32(EXTEND32(x[i+1]), SIG_SHIFT),
- SHL32(EXTEND32(x[i+2]), SIG_SHIFT),
- SHL32(EXTEND32(x[i+3]), SIG_SHIFT)};
+ opus_val32 sum[4];
+ sum[0] = SHL32(EXTEND32(x[i ]), SIG_SHIFT);
+ sum[1] = SHL32(EXTEND32(x[i+1]), SIG_SHIFT),
+ sum[2] = SHL32(EXTEND32(x[i+2]), SIG_SHIFT);
+ sum[3] = SHL32(EXTEND32(x[i+3]), SIG_SHIFT);
xcorr_kernel(rnum, x+i-ord, sum, ord, arch);
y[i ] = ROUND16(sum[0], SIG_SHIFT);
y[i+1] = ROUND16(sum[1], SIG_SHIFT);