From e6ce5ce979cc8209d93e4f28291d2516fb877c29 Mon Sep 17 00:00:00 2001 From: Steve Murphy Date: Fri, 24 Nov 2006 17:17:07 +0000 Subject: [PATCH] bug 8189 posted this fix for main/translate.c for PLC git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47992 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/translate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main/translate.c b/main/translate.c index 82e2789ff0..c9e16b96f8 100644 --- a/main/translate.c +++ b/main/translate.c @@ -172,6 +172,7 @@ static int framein(struct ast_trans_pvt *pvt, struct ast_frame *f) } l = plc_fillin(pvt->plc, dst + pvt->samples, l); pvt->samples += l; + pvt->datalen = pvt->samples * 2; /* SLIN has 2bytes for 1sample */ } return 0; }