Stupid bug :-<
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Sat, 2 Nov 2002 06:08:00 +0000 (06:08 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Sat, 2 Nov 2002 06:08:00 +0000 (06:08 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@4077 0101bb08-14d6-0310-b084-bc0e0c8e3800

libspeex/cb_search.c

index 5733078..046ab84 100644 (file)
@@ -183,7 +183,7 @@ int   complexity
                float *res;
                float sign=1;
                rind = best_index[k];
-               if (rind>shape_cb_size)
+               if (rind>=shape_cb_size)
                {
                   sign=-1;
                   rind-=shape_cb_size;
@@ -215,7 +215,7 @@ int   complexity
                   int rind;
                   float sign=1;
                   rind = best_index[k];
-                  if (rind>shape_cb_size)
+                  if (rind>=shape_cb_size)
                   {
                      sign=-1;
                      rind-=shape_cb_size;
@@ -283,7 +283,7 @@ int   complexity
       int rind;
       float sign=1;
       rind = ind[i];
-      if (rind>shape_cb_size)
+      if (rind>=shape_cb_size)
       {
          sign=-1;
          rind-=shape_cb_size;