mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-15 22:38:08 +00:00
Handle 4 byte packets too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2422 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
frame.c
2
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");
|
ast_log(LOG_WARNING, "Out of smoother space\n");
|
||||||
return -1;
|
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)) {
|
&& !s->opt && (f->offset >= AST_MIN_OFFSET)) {
|
||||||
if (!s->len) {
|
if (!s->len) {
|
||||||
/* Optimize by sending the frame we just got
|
/* Optimize by sending the frame we just got
|
||||||
|
|||||||
Reference in New Issue
Block a user