[Asterisk-cvs] asterisk dsp.c,1.29,1.29.2.1
russell at lists.digium.com
russell at lists.digium.com
Fri Nov 12 08:47:29 CST 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv9301
Modified Files:
Tag: v1-0
dsp.c
Log Message:
fix off by one (bug #2827)
Index: dsp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/dsp.c,v
retrieving revision 1.29
retrieving revision 1.29.2.1
diff -u -d -r1.29 -r1.29.2.1
--- dsp.c 19 Aug 2004 18:52:56 -0000 1.29
+++ dsp.c 12 Nov 2004 13:48:42 -0000 1.29.2.1
@@ -1124,7 +1124,7 @@
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];
}
More information about the svn-commits
mailing list