This fix inspired by a patch supplied in bug 8189, which points out problems with the PLC code
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47995 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
5a2011b9d7
commit
ca7e77d4ef
|
@ -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;
|
||||
}
|
||||
|
|
Reference in New Issue