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

jm at svn.xiph.org jm at svn.xiph.org
Mon May 29 01:43:11 PDT 2006


Author: jm
Date: 2006-05-29 01:43:09 -0700 (Mon, 29 May 2006)
New Revision: 11461

Modified:
   trunk/speex/libspeex/nb_celp.c
Log:
oops, wasn't allocating enough temp memory


Modified: trunk/speex/libspeex/nb_celp.c
===================================================================
--- trunk/speex/libspeex/nb_celp.c	2006-05-29 08:32:13 UTC (rev 11460)
+++ trunk/speex/libspeex/nb_celp.c	2006-05-29 08:43:09 UTC (rev 11461)
@@ -298,7 +298,7 @@
       VARDECL(spx_word16_t *w_sig);
       VARDECL(spx_word16_t *autocorr);
       ALLOC(w_sig, st->windowSize, spx_word16_t);
-      ALLOC(autocorr, st->lpcSize, spx_word16_t);
+      ALLOC(autocorr, st->lpcSize+1, spx_word16_t);
       /* Window for analysis */
       for (i=0;i<st->windowSize-st->frameSize;i++)
          w_sig[i] = EXTRACT16(SHR32(MULT16_16(st->winBuf[i],st->window[i]),SIG_SHIFT));



More information about the commits mailing list