From: Joshua Colp Date: Mon, 18 May 2009 15:51:22 +0000 (+0000) Subject: Fix a typo which caused loss of audio when using G729 in some scenarios with a smooth... X-Git-Tag: 1.4.26~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee5ca5fb33cbbe6bd699448cb40652ad2c3adca7;p=thirdparty%2Fasterisk.git Fix a typo which caused loss of audio when using G729 in some scenarios with a smoother present. (closes issue #15105) Reported by: bamby Patches: process-vad-correctly.diff uploaded by bamby (license 430) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@195206 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/frame.c b/main/frame.c index 58e0762ebb..4315e27610 100644 --- a/main/frame.c +++ b/main/frame.c @@ -266,7 +266,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;