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

jm at svn.xiph.org jm at svn.xiph.org
Thu Apr 20 08:08:30 PDT 2006


Author: jm
Date: 2006-04-20 08:08:27 -0700 (Thu, 20 Apr 2006)
New Revision: 11178

Modified:
   trunk/speex/libspeex/nb_celp.c
Log:
Make sure nobody breaks the code by changing the analysis window size.


Modified: trunk/speex/libspeex/nb_celp.c
===================================================================
--- trunk/speex/libspeex/nb_celp.c	2006-04-20 14:09:06 UTC (rev 11177)
+++ trunk/speex/libspeex/nb_celp.c	2006-04-20 15:08:27 UTC (rev 11178)
@@ -770,7 +770,9 @@
 #endif
 
       {
-         /*FIXME: This is a kludge that will break if we change the window size */
+         /*FIXME: This will break if we change the window size */
+         if (st->windowSize-st->frameSize != st->subframeSize)
+            speex_error("windowSize-frameSize != subframeSize");
          if (sub==0)
          {
             for (i=0;i<st->subframeSize;i++)



More information about the commits mailing list