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

jm at svn.xiph.org jm at svn.xiph.org
Mon May 8 05:26:02 PDT 2006


Author: jm
Date: 2006-05-08 05:25:57 -0700 (Mon, 08 May 2006)
New Revision: 11376

Modified:
   trunk/speex/libspeex/filters.c
Log:
cleaned up a variable-size array (before I get flamed by angry Win32 users)


Modified: trunk/speex/libspeex/filters.c
===================================================================
--- trunk/speex/libspeex/filters.c	2006-05-08 12:14:15 UTC (rev 11375)
+++ trunk/speex/libspeex/filters.c	2006-05-08 12:25:57 UTC (rev 11376)
@@ -740,7 +740,7 @@
 )
 {
    int i; 
-   spx_word16_t iexc[3*nsf];
+   VARDECL(spx_word16_t *iexc);
    spx_word16_t old_ener, new_ener;
    int corr_pitch;
    
@@ -770,6 +770,8 @@
    exc = _exc;
 #endif
 
+   ALLOC(iexc, 2*nsf, spx_word16_t);
+
 #if 0 /* Set to 1 to enable full pitch search */
    open_loop_nbest_pitch(exc, 20, 120, nsf, 
                          nol_pitch, nol_pitch_coef, 6, stack);



More information about the commits mailing list