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

jm at svn.xiph.org jm at svn.xiph.org
Mon Aug 14 06:24:52 PDT 2006


Author: jm
Date: 2006-08-14 06:24:48 -0700 (Mon, 14 Aug 2006)
New Revision: 11771

Modified:
   trunk/speex/libspeex/cb_search.c
Log:
Oops. Thanks to Jim Crichton for pointing out that the complexity could end up
being 0 in the fixed-codebook.


Modified: trunk/speex/libspeex/cb_search.c
===================================================================
--- trunk/speex/libspeex/cb_search.c	2006-08-13 16:56:03 UTC (rev 11770)
+++ trunk/speex/libspeex/cb_search.c	2006-08-14 13:24:48 UTC (rev 11771)
@@ -286,10 +286,10 @@
    N=complexity;
    if (N>10)
       N=10;
+   /* Complexity isn't as important for the codebooks as it is for the pitch */
+   N=(2*N)/3;
    if (N<1)
       N=1;
-   /* Complexity isn't as important for the codebooks as it is for the pitch */
-   N=(2*N)/3;
    if (N==1)
    {
       split_cb_search_shape_sign_N1(target,ak,awk1,awk2,par,p,nsf,exc,r,bits,stack,update_target);



More information about the commits mailing list