]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix a typo which caused loss of audio when using G729 in some scenarios with a smooth...
authorJoshua Colp <jcolp@digium.com>
Mon, 18 May 2009 15:51:22 +0000 (15:51 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 18 May 2009 15:51:22 +0000 (15:51 +0000)
(closes issue #15105)
Reported by: bamby
Patches:
      process-vad-correctly.diff uploaded by bamby (license 430)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@195206 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/frame.c

index 58e0762ebb4914c93f4582c458f1eb41850d5b4f..4315e276102b67de91d1fdcdb82336f1f47c8559 100644 (file)
@@ -266,7 +266,7 @@ struct ast_frame *ast_smoother_read(struct ast_smoother *s)
        /* Make sure we have enough data */
        if (s->len < s->size) {
                /* Or, if this is a G.729 frame with VAD on it, send it immediately anyway */
-               if (!((s->flags & AST_SMOOTHER_FLAG_G729) && (s->size % 10)))
+               if (!((s->flags & AST_SMOOTHER_FLAG_G729) && (s->len % 10)))
                        return NULL;
        }
        len = s->size;