From: Alec L Davis Date: Wed, 5 Sep 2012 18:34:42 +0000 (+0000) Subject: dsp.c: in ast_mf_detect_init incorrectly sets goertzel samples to 160, should be... X-Git-Tag: 1.8.17.0-rc1~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d9cac8a058c2659afb3024f2ba690eac88044d5;p=thirdparty%2Fasterisk.git dsp.c: in ast_mf_detect_init incorrectly sets goertzel samples to 160, should be MF_GSIZE Related https://reviewboard.asterisk.org/r/2097/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@372339 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/dsp.c b/main/dsp.c index 2c9e1420e9..8054a7ccd1 100644 --- a/main/dsp.c +++ b/main/dsp.c @@ -320,7 +320,6 @@ static inline void goertzel_sample(goertzel_state_t *s, short sample) s->chunky++; s->v3 = s->v3 >> 1; s->v2 = s->v2 >> 1; - v1 = v1 >> 1; } } @@ -505,7 +504,7 @@ static void ast_mf_detect_init (mf_detect_state_t *s) int i; s->hits[0] = s->hits[1] = s->hits[2] = s->hits[3] = s->hits[4] = 0; for (i = 0; i < 6; i++) { - goertzel_init (&s->tone_out[i], mf_tones[i], 160); + goertzel_init (&s->tone_out[i], mf_tones[i], MF_GSIZE); } s->current_sample = 0; s->current_hit = 0;