diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-04-14 17:42:11 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-04-14 17:42:11 +0000 |
commit | c66477d309930b3e34b51b1ce2b40894179bea52 (patch) | |
tree | 6152f2b719cc431dc05932cdc0e9e96418a0f263 | |
parent | 036188e4f7ad8fa8ec1b59e552c7a337b3b51e49 (diff) |
Merged revisions 188413 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r188413 | file | 2009-04-14 14:40:50 -0300 (Tue, 14 Apr 2009) | 5 lines
Fix an incorrect clock rate when sending T140 text.
(closes issue #14029)
Reported by: epicac
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@188414 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | main/rtp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/rtp.c b/main/rtp.c index a63dc282d..022d985b0 100644 --- a/main/rtp.c +++ b/main/rtp.c @@ -3056,14 +3056,14 @@ static int ast_rtp_raw_write(struct ast_rtp *rtp, struct ast_frame *f, int codec } else { pred = rtp->lastotexttimestamp + f->samples; /* Re-calculate last TS */ - rtp->lastts = rtp->lastts + ms * 90; + rtp->lastts = rtp->lastts + ms; /* If it's close to our prediction, go for it */ if (ast_tvzero(f->delivery)) { if (abs(rtp->lastts - pred) < 7200) { rtp->lastts = pred; rtp->lastotexttimestamp += f->samples; } else { - ast_debug(3, "Difference is %d, ms is %d (%d), pred/ts/samples %d/%d/%d\n", abs(rtp->lastts - pred), ms, ms * 90, rtp->lastts, pred, f->samples); + ast_debug(3, "Difference is %d, ms is %d, pred/ts/samples %d/%d/%d\n", abs(rtp->lastts - pred), ms, rtp->lastts, pred, f->samples); rtp->lastotexttimestamp = rtp->lastts; } } |