diff options
-rwxr-xr-x | apps/app_talkdetect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_talkdetect.c b/apps/app_talkdetect.c index 79bac3859..0816949af 100755 --- a/apps/app_talkdetect.c +++ b/apps/app_talkdetect.c @@ -130,7 +130,7 @@ static int background_detect_exec(struct ast_channel *chan, void *data) ast_frfree(fr); break; } - } else if (fr->frametype == AST_FRAME_VOICE) { + } else if ((fr->frametype == AST_FRAME_VOICE) && (fr->subclass == AST_FORMAT_SLINEAR)) { int totalsilence; int ms; res = ast_dsp_silence(dsp, fr, &totalsilence); |