[xiph-cvs] cvs commit: speex/libspeex cb_search.c

Jean-Marc Valin jm at xiph.org
Fri Nov 1 22:08:00 PST 2002



jm          02/11/02 01:08:00

  Modified:    libspeex cb_search.c
  Log:
  Stupid bug :-<

Revision  Changes    Path
1.80      +3 -3      speex/libspeex/cb_search.c

Index: cb_search.c
===================================================================
RCS file: /usr/local/cvsroot/speex/libspeex/cb_search.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -r1.79 -r1.80
--- cb_search.c	27 Oct 2002 06:01:30 -0000	1.79
+++ cb_search.c	2 Nov 2002 06:08:00 -0000	1.80
@@ -183,7 +183,7 @@
                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 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 rind;
       float sign=1;
       rind = ind[i];
-      if (rind>shape_cb_size)
+      if (rind>=shape_cb_size)
       {
          sign=-1;
          rind-=shape_cb_size;

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list