Handle 4 byte packets too
authorMark Spencer <markster@digium.com>
Sun, 14 Mar 2004 21:01:13 +0000 (21:01 +0000)
committerMark Spencer <markster@digium.com>
Sun, 14 Mar 2004 21:01:13 +0000 (21:01 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2422 65c4cc65-6c06-0410-ace0-fbb531ad65f3

frame.c

diff --git a/frame.c b/frame.c
index 2a8989e..68b2c33 100755 (executable)
--- a/frame.c
+++ b/frame.c
@@ -92,7 +92,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) || ((f->datalen == 2) && (s->flags & AST_SMOOTHER_FLAG_G729)))
+       if (((f->datalen == s->size) || ((f->datalen < 10) && (s->flags & AST_SMOOTHER_FLAG_G729)))
                                 && !s->opt && (f->offset >= AST_MIN_OFFSET)) {
                if (!s->len) {
                        /* Optimize by sending the frame we just got