Skip to content
Snippets Groups Projects
Commit aa2bdcc0 authored by Mark Spencer's avatar Mark Spencer
Browse files

Handle 4 byte packets too

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2422 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 79898006
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment