Skip to content
Snippets Groups Projects
Commit 500ebad7 authored by Mark Spencer's avatar Mark Spencer
Browse files

Fix slow down in rtp.c

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2244 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 6de8d14b
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment