Fix slow down in rtp.c
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2244 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
0f8ee82ac2
commit
a75383add1
1 changed files with 1 additions and 1 deletions
2
rtp.c
2
rtp.c
|
@ -913,7 +913,7 @@ static int ast_rtp_raw_write(struct ast_rtp *rtp, struct ast_frame *f, int codec
|
|||
case AST_FORMAT_ALAW:
|
||||
/* If we're within +/- 20ms from when where we
|
||||
predict we should be, use that */
|
||||
pred = rtp->lastts + f->datalen * 2;
|
||||
pred = rtp->lastts + f->datalen;
|
||||
break;
|
||||
case AST_FORMAT_ADPCM:
|
||||
case AST_FORMAT_G726:
|
||||
|
|
Reference in a new issue