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
This commit is contained in:
Steve Murphy 2006-11-24 17:40:49 +00:00
parent 3fd07f51f2
commit 6d270eacf4
1 changed files with 1 additions and 0 deletions

View 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;
}