Fix crashes with VBR for short duration frames and very low bitrates. This may, howev...
[opus.git] / tests / real-fft-test.c
index aa9c395..f4bb20b 100644 (file)
@@ -7,6 +7,14 @@
 #include <stdio.h>
 #include <string.h>
 
+#define CELT_C 
+#include "../libcelt/stack_alloc.h"
+#include "../libcelt/kiss_fft.c"
+#include "../libcelt/kiss_fftr.c"
+
+#ifdef FIXED_DEBUG
+long long celt_mips=0;
+#endif
 int ret=0;
 
 static
@@ -83,6 +91,7 @@ int main(void)
     kiss_fft_scalar rin[NFFT+2];
     kiss_fft_scalar rout[NFFT+2];
     kiss_fft_scalar zero;
+    ALLOC_STACK;
     memset(&zero,0,sizeof(zero) ); // ugly way of setting short,int,float,double, or __m128 to zero
 
     for (i=0;i<NFFT;++i) {