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

jm at svn.xiph.org jm at svn.xiph.org
Wed Oct 10 03:23:50 PDT 2007


Author: jm
Date: 2007-10-10 03:23:49 -0700 (Wed, 10 Oct 2007)
New Revision: 13950

Modified:
   trunk/speex/libspeex/preprocess.c
Log:
Fix for fixed-point preprocessor bug reported by Peter Rowling


Modified: trunk/speex/libspeex/preprocess.c
===================================================================
--- trunk/speex/libspeex/preprocess.c	2007-10-10 00:21:01 UTC (rev 13949)
+++ trunk/speex/libspeex/preprocess.c	2007-10-10 10:23:49 UTC (rev 13950)
@@ -737,6 +737,8 @@
    spx_word16_t effective_echo_suppress;
    
    st->nb_adapt++;
+   if (st->nb_adapt>20000)
+      st->nb_adapt = 20000;
    st->min_count++;
    
    beta = MAX16(QCONST16(.03,15),DIV32_16(Q15_ONE,st->nb_adapt));



More information about the commits mailing list