mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
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:
2
dsp.c
2
dsp.c
@@ -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;
|
||||
|
Reference in New Issue
Block a user