diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-02-16 15:05:21 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-02-16 15:05:21 +0000 |
commit | 9d7fa3f3f040237aff8587c9cc374a6f636708df (patch) | |
tree | 934d120da3812f244efef0486d48a8d90f6c9709 /frame.c | |
parent | 931e9ecf85db086abefa1b4fa3a0470daf6922be (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-x | frame.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |