shithub: opus

Download patch

ref: ab3784e99faeafc954d1011364c2161fb91ce640
parent: 2cc1fcbda06e2c3f20381c7f14257077543ed95f
author: Jean-Marc Valin <[email protected]>
date: Thu Aug 26 14:08:44 EDT 2010

Small suckage reduction in compute_inv_mdcts(). More to come.

--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -391,10 +391,8 @@
             if we actually wanted to use them. */
          for (j=0;j<overlap;j++)
             out_mem[C*(MAX_PERIOD-N)+C*j+c] += x[j+N4];
-         for (j=0;j<overlap;j++)
-            out_mem[C*(MAX_PERIOD)+C*(overlap-j-1)+c] = x[2*N-j-N4-1];
-         for (j=0;j<2*N4;j++)
-            out_mem[C*(MAX_PERIOD-N)+C*(j+overlap)+c] = x[j+N4+overlap];
+         for (;j<overlap+N;j++)
+            out_mem[C*(MAX_PERIOD-N)+C*j+c] = x[j+N4];
          RESTORE_STACK;
       }
    }