summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/frame.c b/main/frame.c
index 956fea3e5..a0feb6558 100644
--- a/main/frame.c
+++ b/main/frame.c
@@ -256,7 +256,7 @@ struct ast_frame *ast_smoother_read(struct ast_smoother *s)
/* Make sure we have enough data */
if (s->len < s->size) {
/* Or, if this is a G.729 frame with VAD on it, send it immediately anyway */
- if (!((s->flags & AST_SMOOTHER_FLAG_G729) && (s->size % 10)))
+ if (!((s->flags & AST_SMOOTHER_FLAG_G729) && (s->len % 10)))
return NULL;
}
len = s->size;