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

jm at motherfish-iii.xiph.org jm at motherfish-iii.xiph.org
Mon Jun 6 00:17:03 PDT 2005


Author: jm
Date: 2005-06-06 00:17:01 -0700 (Mon, 06 Jun 2005)
New Revision: 9370

Modified:
   trunk/speex/libspeex/ltp.c
Log:
Removed unnecessary call to open_loop_nbest_pitch (which in turn fixes
a blackfin alignment bug)


Modified: trunk/speex/libspeex/ltp.c
===================================================================
--- trunk/speex/libspeex/ltp.c	2005-06-06 06:52:18 UTC (rev 9369)
+++ trunk/speex/libspeex/ltp.c	2005-06-06 07:17:01 UTC (rev 9370)
@@ -608,7 +608,10 @@
    
    if (N>end-start+1)
       N=end-start+1;
-   open_loop_nbest_pitch(sw, start, end, nsf, nbest, NULL, N, stack);
+   if (end != start)
+      open_loop_nbest_pitch(sw, start, end, nsf, nbest, NULL, N, stack);
+   else
+      nbest[0] = start;
    for (i=0;i<N;i++)
    {
       pitch=nbest[i];



More information about the commits mailing list