shithub: opus

Download patch

ref: 14806ab9366166a4f8df639b90be64a9b78b98a3
parent: af8402e033360256d34689cd822cd75291ff4bef
author: Jean-Marc Valin <[email protected]>
date: Fri Feb 22 08:20:05 EST 2008

Fixed the real fft testsuite as well

--- a/tests/real-fft-test.c
+++ b/tests/real-fft-test.c
@@ -143,6 +143,13 @@
         cin[NFFT-i].i = - cin[i].i;
     }
 
+#ifdef FIXED_POINT
+    for (i=0;i< NFFT;++i) {
+       cin[i].r /= NFFT;
+       cin[i].i /= NFFT;
+    }
+#endif
+    
     fin[0] = cin[0].r;
     fin[1] = cin[NFFT/2].r;
     for (i=1;i< NFFT/2;++i)