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

jm at svn.xiph.org jm at svn.xiph.org
Mon Aug 20 05:45:42 PDT 2007


Author: jm
Date: 2007-08-20 05:45:42 -0700 (Mon, 20 Aug 2007)
New Revision: 13579

Modified:
   trunk/speex/libspeex/nb_celp.c
Log:
Fixed a DTX bug by changing the order of the test in case we have a null mode.


Modified: trunk/speex/libspeex/nb_celp.c
===================================================================
--- trunk/speex/libspeex/nb_celp.c	2007-08-20 10:44:04 UTC (rev 13578)
+++ trunk/speex/libspeex/nb_celp.c	2007-08-20 12:45:42 UTC (rev 13579)
@@ -355,7 +355,7 @@
 
 
       /*Open-loop pitch*/
-      if ((st->complexity>2 && SUBMODE(have_subframe_gain)<3) || !st->submodes[st->submodeID] || st->vbr_enabled || st->vad_enabled || SUBMODE(forced_pitch_gain) ||
+      if (!st->submodes[st->submodeID] || (st->complexity>2 && SUBMODE(have_subframe_gain)<3) || st->vbr_enabled || st->vad_enabled || SUBMODE(forced_pitch_gain) ||
           SUBMODE(lbr_pitch) != -1)
       {
          int nol_pitch[6];



More information about the commits mailing list