shithub: opus

Download patch

ref: 0722c16dd3bc66d77be61cb5330d0bb32650b899
parent: ef2e6505927dfda67b9bd4b7b438bf93df5128ab
author: Jean-Marc Valin <[email protected]>
date: Tue Nov 16 05:55:38 EST 2010

Good catch by John Ridges

--- a/libcelt/pitch.c
+++ b/libcelt/pitch.c
@@ -112,7 +112,7 @@
    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];
    }