cleaned up a variable-size array (before I get flamed by angry Win32 users)
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Mon, 8 May 2006 12:25:57 +0000 (12:25 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Mon, 8 May 2006 12:25:57 +0000 (12:25 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@11376 0101bb08-14d6-0310-b084-bc0e0c8e3800

libspeex/filters.c

index d6af03e..1294601 100644 (file)
@@ -740,7 +740,7 @@ char *stack
 )
 {
    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 @@ char *stack
    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);