diff fft.c @ 10172:eda985c53dba libavcodec

ARM: 10l: fix large FFTs
author mru
date Mon, 14 Sep 2009 21:37:41 +0000
parents 8d369aee733f
children 5cf49858179a
line wrap: on
line diff
--- a/fft.c	Sun Sep 13 19:17:02 2009 +0000
+++ b/fft.c	Mon Sep 14 21:37:41 2009 +0000
@@ -64,7 +64,6 @@
     float alpha, c1, s1, s2;
     int split_radix = 1;
     int av_unused has_vectors;
-    int revtab_shift = 0;
 
     if (nbits < 2 || nbits > 16)
         goto fail;
@@ -120,7 +119,6 @@
     s->imdct_calc  = ff_imdct_calc_neon;
     s->imdct_half  = ff_imdct_half_neon;
     s->mdct_calc   = ff_mdct_calc_neon;
-    revtab_shift = 3;
 #endif
 
     if (split_radix) {
@@ -134,8 +132,7 @@
                 tab[m/2-i] = tab[i];
         }
         for(i=0; i<n; i++)
-            s->revtab[-split_radix_permutation(i, n, s->inverse) & (n-1)] =
-                i << revtab_shift;
+            s->revtab[-split_radix_permutation(i, n, s->inverse) & (n-1)] = i;
         s->tmp_buf = av_malloc(n * sizeof(FFTComplex));
     } else {
         int np, nblocks, np2, l;