Good catch by John Ridges

This commit is contained in:
Jean-Marc Valin 2010-11-16 10:55:38 -05:00
parent ef2e650592
commit 0722c16dd3

View file

@ -112,7 +112,7 @@ void pitch_downsample(celt_sig * restrict x[], celt_word16 * restrict x_lp, int
if (C==2)
{
for (i=1;i<len>>1;i++)
x_lp[i] = SHR32(HALF32(HALF32(x[1][(2*i-1)]+x[1][(2*i+1)])+x[1][2*i]), SIG_SHIFT+2);
x_lp[i] += SHR32(HALF32(HALF32(x[1][(2*i-1)]+x[1][(2*i+1)])+x[1][2*i]), SIG_SHIFT+2);
x_lp[0] += SHR32(HALF32(HALF32(x[1][1])+x[1][0]), SIG_SHIFT+2);
*xmem += x[1][end-1];
}