aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-18 15:51:22 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-18 15:51:22 +0000
commit8c54673dbab7ca7680382d4cd70f668b1dcb48bd (patch)
treedc31e5f320c2d84952d668032bdaa4a6a92d7b18 /main
parent6b367532897d3bb2c64e3da342cb8bc868a6d139 (diff)
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/branches/1.4@195206 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/frame.c b/main/frame.c
index 58e0762eb..4315e2761 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;