]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Properly set datalen field when doing PLC in codec_speex. (issue #9722 reported by...
authorJoshua Colp <jcolp@digium.com>
Mon, 14 May 2007 18:48:33 +0000 (18:48 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 14 May 2007 18:48:33 +0000 (18:48 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@64278 65c4cc65-6c06-0410-ace0-fbb531ad65f3

codecs/codec_speex.c

index 6978184ae0df557730a06530060ba565572c88e1..8825f8158ed9f7867ceea1e9cfc34866d03f16e5 100644 (file)
@@ -220,6 +220,7 @@ static int speextolin_framein(struct ast_trans_pvt *pvt, struct ast_frame *f)
                }
 #endif
                pvt->samples += tmp->framesize;
+               pvt->datalen += 2 * tmp->framesize; /* 2 bytes/sample */
                return 0;
        }