aboutsummaryrefslogtreecommitdiffstats
path: root/frame.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-02-16 15:05:21 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-02-16 15:05:21 +0000
commit9d7fa3f3f040237aff8587c9cc374a6f636708df (patch)
tree934d120da3812f244efef0486d48a8d90f6c9709 /frame.c
parent931e9ecf85db086abefa1b4fa3a0470daf6922be (diff)
Make sure smoother only creates frames with offsets (bug #1029)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2184 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'frame.c')
-rwxr-xr-xframe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/frame.c b/frame.c
index 97fe683d5..06f714d0b 100755
--- a/frame.c
+++ b/frame.c
@@ -80,7 +80,7 @@ int ast_smoother_feed(struct ast_smoother *s, struct ast_frame *f)
ast_log(LOG_WARNING, "Out of smoother space\n");
return -1;
}
- if ((f->datalen == s->size) && !s->opt) {
+ if ((f->datalen == s->size) && !s->opt && (f->offset >= AST_MIN_OFFSET)) {
if (!s->len) {
/* Optimize by sending the frame we just got
on the next read, thus eliminating the douple