diff --git a/dsp.c b/dsp.c index 5d61ff8081..e637aa65bd 100755 --- a/dsp.c +++ b/dsp.c @@ -1228,6 +1228,9 @@ static int __ast_dsp_silence(struct ast_dsp *dsp, short *s, int len, int *totals int accum; int x; int res = 0; + + if (!len) + return 0; accum = 0; for (x=0;x