From: Joshua Colp Date: Mon, 14 May 2007 18:49:40 +0000 (+0000) Subject: Merged revisions 64278 via svnmerge from X-Git-Tag: 1.6.0-beta1~3^2~2682 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e6c6f55a382a4e7019260b5cc21299cd0ce6f04;p=thirdparty%2Fasterisk.git Merged revisions 64278 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r64278 | file | 2007-05-14 14:48:33 -0400 (Mon, 14 May 2007) | 2 lines Properly set datalen field when doing PLC in codec_speex. (issue #9722 reported by mihai) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@64279 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/codecs/codec_speex.c b/codecs/codec_speex.c index 7a66b459f9..c08de58796 100644 --- a/codecs/codec_speex.c +++ b/codecs/codec_speex.c @@ -223,6 +223,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; }