aboutsummaryrefslogtreecommitdiffstats
path: root/codecs
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-14 18:48:33 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-14 18:48:33 +0000
commit911ea48ed75acf61318f904687d745c0a013ace3 (patch)
treed313d6904597cf401e59d5e66404c1c400e63a2c /codecs
parent4fc203012dabd6c90644e4879880d92ccd78fe26 (diff)
Properly set datalen field when doing PLC in codec_speex. (issue #9722 reported by mihai)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@64278 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs')
-rw-r--r--codecs/codec_speex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/codecs/codec_speex.c b/codecs/codec_speex.c
index 6978184ae..8825f8158 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;
}