diff options
author | Steve Murphy <murf@digium.com> | 2006-11-24 17:40:49 +0000 |
---|---|---|
committer | Steve Murphy <murf@digium.com> | 2006-11-24 17:40:49 +0000 |
commit | 6d270eacf478c32a990230fd955c0dee20b1ce3f (patch) | |
tree | 583bc83abc00a7cd5dc6f7a0e5abc5ed3113afc6 /main/translate.c | |
parent | 3fd07f51f2e9f14fc158f8d36725f8bfc3291d6d (diff) |
This fix inspired by a patch supplied in bug 8189, which points out problems with the PLC code
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47995 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/translate.c')
-rw-r--r-- | main/translate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/translate.c b/main/translate.c index d48a57c41..6663cdca3 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; } |