From: Joshua Colp Date: Mon, 14 May 2007 18:48:33 +0000 (+0000) Subject: Properly set datalen field when doing PLC in codec_speex. (issue #9722 reported by... X-Git-Tag: 1.4.5~185 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e694a865170250a605a2519b1b6cd2cbdf52ae07;p=thirdparty%2Fasterisk.git Properly set datalen field when doing PLC in codec_speex. (issue #9722 reported by mihai) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@64278 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/codecs/codec_speex.c b/codecs/codec_speex.c index 6978184ae0..8825f8158e 100644 --- a/codecs/codec_speex.c +++ b/codecs/codec_speex.c @@ -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; }