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

jm at svn.xiph.org jm at svn.xiph.org
Sat Dec 2 06:04:45 PST 2006


Author: jm
Date: 2006-12-02 06:04:43 -0800 (Sat, 02 Dec 2006)
New Revision: 12165

Modified:
   trunk/speex/libspeex/cb_search.c
Log:
Fixed a very low-bitrate fixed-point wideband bug (happening mainly with VAD
on) caused by incorrect shift in noise_codebook_quant().


Modified: trunk/speex/libspeex/cb_search.c
===================================================================
--- trunk/speex/libspeex/cb_search.c	2006-12-02 12:23:05 UTC (rev 12164)
+++ trunk/speex/libspeex/cb_search.c	2006-12-02 14:04:43 UTC (rev 12165)
@@ -580,7 +580,7 @@
    VARDECL(spx_sig_t *tmp);
    ALLOC(tmp, nsf, spx_sig_t);
    for (i=0;i<nsf;i++)
-      tmp[i]=PSHR32(EXTEND32(target[i]),SIG_SHIFT);
+      tmp[i]=SHL32(EXTEND32(target[i]),8);
    residue_percep_zero(tmp, ak, awk1, awk2, tmp, nsf, p, stack);
 
    for (i=0;i<nsf;i++)



More information about the commits mailing list