summaryrefslogtreecommitdiff
path: root/main/dsp.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/dsp.c')
-rw-r--r--main/dsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/dsp.c b/main/dsp.c
index fdea748fd..91eea6c9d 100644
--- a/main/dsp.c
+++ b/main/dsp.c
@@ -631,7 +631,7 @@ static int v21_detect(struct ast_dsp *dsp, v21_detect_state_t *s, int16_t *amp,
}
if (hit) {
- if (s->miss_count == 3) {
+ if (s->miss_count == 3 || (s->hit_count == 1 && s->miss_count == 2)) {
s->hit_count++;
} else {
s->hit_count = 1;