From 2c15c034ee721ad34f0ebd11efe6e609aa359ab2 Mon Sep 17 00:00:00 2001 From: jm Date: Mon, 20 Aug 2007 12:45:42 +0000 Subject: Fixed a DTX bug by changing the order of the test in case we have a null mode. git-svn-id: http://svn.xiph.org/trunk/speex@13579 0101bb08-14d6-0310-b084-bc0e0c8e3800 --- libspeex/nb_celp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libspeex/nb_celp.c') diff --git a/libspeex/nb_celp.c b/libspeex/nb_celp.c index 7bb4c1e..bf7a641 100644 --- a/libspeex/nb_celp.c +++ b/libspeex/nb_celp.c @@ -355,7 +355,7 @@ int nb_encode(void *state, void *vin, SpeexBits *bits) /*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]; -- cgit v1.2.3