[Asterisk-cvs] asterisk rtp.c,1.58,1.59

markster at lists.digium.com markster at lists.digium.com
Sat Mar 20 00:24:17 CST 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv9248

Modified Files:
	rtp.c 
Log Message:
Round offset timestamps to nearest 20ms to clean up numbers.


Index: rtp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/rtp.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- rtp.c	17 Mar 2004 16:49:00 -0000	1.58
+++ rtp.c	20 Mar 2004 05:19:45 -0000	1.59
@@ -366,6 +366,7 @@
 		gettimeofday(&rtp->rxcore, NULL);
 		rtp->rxcore.tv_sec -= timestamp / 8000;
 		rtp->rxcore.tv_usec -= (timestamp % 8000) * 125;
+		rtp->rxcore.tv_usec -= rtp->rxcore.tv_usec % 20000;
 		if (rtp->rxcore.tv_usec < 0) {
 			/* Adjust appropriately if necessary */
 			rtp->rxcore.tv_usec += 1000000;




More information about the svn-commits mailing list