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

jm at svn.xiph.org jm at svn.xiph.org
Thu Apr 12 01:05:10 PDT 2007


Author: jm
Date: 2007-04-12 01:05:08 -0700 (Thu, 12 Apr 2007)
New Revision: 12850

Modified:
   trunk/speex/libspeex/cb_search.c
Log:
Coverity found that one! Caused a quality drop for fixed-point wideband
at complexity 1.


Modified: trunk/speex/libspeex/cb_search.c
===================================================================
--- trunk/speex/libspeex/cb_search.c	2007-04-11 18:20:04 UTC (rev 12849)
+++ trunk/speex/libspeex/cb_search.c	2007-04-12 08:05:08 UTC (rev 12850)
@@ -181,7 +181,7 @@
                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);



More information about the commits mailing list