]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fix off by one (bug #2827)
authorRussell Bryant <russell@russellbryant.com>
Fri, 12 Nov 2004 13:48:42 +0000 (13:48 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 12 Nov 2004 13:48:42 +0000 (13:48 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4223 65c4cc65-6c06-0410-ace0-fbb531ad65f3

dsp.c

diff --git a/dsp.c b/dsp.c
index e637aa65bd2a7632cc74159320cf0b5be2323b08..784365c155e4d53e9fc05fe46fe7d4d9ab9b74ce 100755 (executable)
--- a/dsp.c
+++ b/dsp.c
@@ -1124,7 +1124,7 @@ static int __ast_dsp_call_progress(struct ast_dsp *dsp, short *s, int len)
                if (pass > dsp->gsamp_size - dsp->gsamps) 
                        pass = dsp->gsamp_size - dsp->gsamps;
                for (x=0;x<pass;x++) {
-                       for (y=0;y<dsp->freqcount;y++) 
+                       for (y=0;y<=dsp->freqcount;y++) 
                                goertzel_sample(&dsp->freqs[y], s[x]);
                        dsp->genergy += s[x] * s[x];
                }