This fix inspired by a patch supplied in bug 8189, which points out problems with...
authorSteve Murphy <murf@digium.com>
Fri, 24 Nov 2006 17:40:49 +0000 (17:40 +0000)
committerSteve Murphy <murf@digium.com>
Fri, 24 Nov 2006 17:40:49 +0000 (17:40 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47995 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/translate.c

index d48a57c..6663cdc 100644 (file)
@@ -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;
                }