shithub: opus

Download patch

ref: 32d8c10df966e57429c6900ea0eb7f25bf717ce2
parent: ac5dc40ae808c44fb0020cad48151793e8cf0c8c
author: Jean-Marc Valin <[email protected]>
date: Fri Mar 21 09:11:16 EDT 2008

Removed potentially unused var in MDCT init

--- a/libcelt/mdct.c
+++ b/libcelt/mdct.c
@@ -60,11 +60,10 @@
 void mdct_init(mdct_lookup *l,int N)
 {
    int i;
-   int N2, N4;
+   int N2;
    l->n = N;
    N2 = N/2;
-   N4 = N/4;
-   l->kfft = cpx32_fft_alloc(N4);
+   l->kfft = cpx32_fft_alloc(N/4);
    l->trig = (kiss_twiddle_scalar*)celt_alloc(N2*sizeof(kiss_twiddle_scalar));
    /* We have enough points that sine isn't necessary */
 #if defined(FIXED_POINT)