Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/speexdsp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>2007-08-20 16:45:42 +0400
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>2007-08-20 16:45:42 +0400
commit2c15c034ee721ad34f0ebd11efe6e609aa359ab2 (patch)
treeec54bf2529987e9f8e0e82b9ff826475545ae6c9 /libspeex/nb_celp.c
parent1e2f996684671e0248429e3ddf55e9c1b02c60a6 (diff)
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
Diffstat (limited to 'libspeex/nb_celp.c')
-rw-r--r--libspeex/nb_celp.c2
1 files changed, 1 insertions, 1 deletions
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];