[xiph-commits] r12116 - trunk/speex/libspeex

jm at svn.xiph.org jm at svn.xiph.org
Wed Nov 15 03:01:33 PST 2006


Author: jm
Date: 2006-11-15 03:01:30 -0800 (Wed, 15 Nov 2006)
New Revision: 12116

Modified:
   trunk/speex/libspeex/fftwrap.c
Log:
Minor C89 fix


Modified: trunk/speex/libspeex/fftwrap.c
===================================================================
--- trunk/speex/libspeex/fftwrap.c	2006-11-15 11:00:23 UTC (rev 12115)
+++ trunk/speex/libspeex/fftwrap.c	2006-11-15 11:01:30 UTC (rev 12116)
@@ -103,8 +103,8 @@
    if (in==out)
    {
       int i;
+      float scale = 1./((struct drft_lookup *)table)->n;
       speex_warning("FFT should not be done in-place");
-      float scale = 1./((struct drft_lookup *)table)->n;
       for (i=0;i<((struct drft_lookup *)table)->n;i++)
          out[i] = scale*in[i];
    } else {



More information about the commits mailing list