summaryrefslogtreecommitdiff
path: root/rtp.c
diff options
context:
space:
mode:
authorMatteo Brancaleoni <mbrancaleoni@espia.it>2003-02-20 06:00:14 +0000
committerMatteo Brancaleoni <mbrancaleoni@espia.it>2003-02-20 06:00:14 +0000
commit48130719cb745182878765357eed27d0a7256c98 (patch)
tree52c2c6abd07e82e95cb7b09c31804c0e9bd1f5f6 /rtp.c
parentcf3b725fe906080f6abf3f2ff16eb565660062aa (diff)
Thu Feb 20 07:00:00 CET 2003
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@619 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'rtp.c')
-rwxr-xr-xrtp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/rtp.c b/rtp.c
index a93823c43..aba47dbb5 100755
--- a/rtp.c
+++ b/rtp.c
@@ -592,11 +592,12 @@ static int ast_rtp_raw_write(struct ast_rtp *rtp, struct ast_frame *f, int codec
/* Re-calculate last TS */
rtp->lastts = ms * 8;
-
+#if 0 /* XXX Experiment -- Make timestamp always relative XXX */
/* If it's close to ou prediction, go for it */
if (abs(rtp->lastts - pred) < 640)
+#endif
rtp->lastts = pred;
-#if 1
+#if 0
else
printf("Difference is %d, ms is %d\n", abs(rtp->lastts - pred), ms);
#endif