Fix off by one (bug #2872, but different solution)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4198 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-11-10 20:20:18 +00:00
parent 168d706b03
commit 81a481d738

2
dsp.c
View File

@@ -1606,7 +1606,7 @@ static void ast_dsp_prog_reset(struct ast_dsp *dsp)
for (x=0;x<sizeof(modes[dsp->progmode].freqs) / sizeof(modes[dsp->progmode].freqs[0]);x++) {
if (modes[dsp->progmode].freqs[x]) {
goertzel_init(&dsp->freqs[x], (float)modes[dsp->progmode].freqs[x], dsp->gsamp_size);
max = x;
max = x + 1;
}
}
dsp->freqcount = max;