From 6bb5afcfabcb67ae3183327f650145d898568bb4 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Mon, 18 May 2009 15:54:26 +0000 Subject: [PATCH] Merged revisions 195207 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ................ r195207 | file | 2009-05-18 12:53:26 -0300 (Mon, 18 May 2009) | 14 lines Merged revisions 195206 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r195206 | file | 2009-05-18 12:51:22 -0300 (Mon, 18 May 2009) | 7 lines 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.6.0@195208 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/frame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/frame.c b/main/frame.c index f5eaa55347..269370d2a5 100644 --- a/main/frame.c +++ b/main/frame.c @@ -254,7 +254,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;