Coverity found that one! Caused a quality drop for fixed-point wideband
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Thu, 12 Apr 2007 08:05:08 +0000 (08:05 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Thu, 12 Apr 2007 08:05:08 +0000 (08:05 +0000)
at complexity 1.

git-svn-id: http://svn.xiph.org/trunk/speex@12850 0101bb08-14d6-0310-b084-bc0e0c8e3800

libspeex/cb_search.c

index 6c4f068..cab2b71 100644 (file)
@@ -181,7 +181,7 @@ int   update_target
                t[subvect_size*i+m] = ADD16(t[subvect_size*i+m], res[m]);
 
 #ifdef FIXED_POINT
-         if (sign)
+         if (sign==1)
          {
             for (j=0;j<subvect_size;j++)
                e[subvect_size*i+j]=SHL32(EXTEND32(shape_cb[rind*subvect_size+j]),SIG_SHIFT-5);