aboutsummaryrefslogtreecommitdiffstats
path: root/main/frame.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-18 15:53:26 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-18 15:53:26 +0000
commit9172c6413132a149a985e3f83698dc00bb3f3209 (patch)
treefed0d50cfb1c26f29301f1cc59708e95cbdde600 /main/frame.c
parente58623981610271b6346e4f45007bf0e4fe1a323 (diff)
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: http://svn.digium.com/svn/asterisk/trunk@195207 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/frame.c')
-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;