shithub: opus

Download patch

ref: d13cd1568d42abe06c227e15282ac3a22a19d72c
parent: 0410e9ca817e7f9c05fed02bfcde6edcd5eb0401
author: Jean-Marc Valin <[email protected]>
date: Fri Aug 27 12:05:01 EDT 2010

Unb0rk fixed-point build

--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -311,9 +311,9 @@
          {
 #ifdef FIXED_POINT
             for (j=0;j<16;j++)
-               x[transient_time+j-16] = MULT16_32_Q15(SHR16(Q15_ONE-transientWindow[j],transient_shift)+transientWindow[j], SHL32(x[N4+transient_time+j-16],transient_shift));
+               x[transient_time+j-16] = MULT16_32_Q15(SHR16(Q15_ONE-transientWindow[j],transient_shift)+transientWindow[j], SHL32(x[transient_time+j-16],transient_shift));
             for (j=transient_time;j<N+overlap;j++)
-               x[j] = SHL32(x[N4+j], transient_shift);
+               x[j] = SHL32(x[j], transient_shift);
 #else
             for (j=0;j<16;j++)
                x[transient_time+j-16] *= 1+transientWindow[j]*((1<<transient_shift)-1);