Updates MDCT unit test
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Sun, 2 Dec 2012 03:11:47 +0000 (22:11 -0500)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Sun, 2 Dec 2012 03:11:47 +0000 (22:11 -0500)
celt/tests/test_unit_mdct.c

index f8fb9ac..42962e1 100644 (file)
@@ -151,6 +151,9 @@ void test1d(int nfft,int isinverse)
        for (k=0;k<nfft;++k)
           out[k] = 0;
        clt_mdct_backward(&cfg,in,out, window, nfft/2, 0, 1);
+       /* apply TDAC because clt_mdct_backward() no longer does that */
+       for (k=0;k<nfft/4;++k)
+          out[nfft-k-1] = out[nfft/2+k];
        check_inv(in,out,nfft,isinverse);
     } else {
        clt_mdct_forward(&cfg,in,out,window, nfft/2, 0, 1);