[Freeswitch-svn] [commit] r4476 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Wed Mar 7 19:27:22 EST 2007


Author: anthm
Date: Wed Mar  7 19:27:22 2007
New Revision: 4476

Modified:
   freeswitch/trunk/src/switch_rtp.c

Log:
update

Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c	(original)
+++ freeswitch/trunk/src/switch_rtp.c	Wed Mar  7 19:27:22 2007
@@ -1389,6 +1389,10 @@
 		rtp_session->ts = ts;
 	}
 
+	if (rtp_session->ts <= rtp_session->last_write_ts) {
+		rtp_session->ts += rtp_session->packet_size;
+	}
+
 	if (rtp_session->ts > rtp_session->last_write_ts + rtp_session->packet_size || rtp_session->ts == rtp_session->packet_size) {
 		mark++;
 	}
@@ -1454,6 +1458,10 @@
 			mark++;
 		}
 
+		if (rtp_session->ts <= rtp_session->last_write_ts) {
+			rtp_session->ts += rtp_session->packet_size;
+		}
+		
 		rtp_session->seq = ntohs(rtp_session->seq) + 1;
 		rtp_session->seq = htons(rtp_session->seq);
 		rtp_session->send_msg.header.seq = rtp_session->seq;



More information about the Freeswitch-svn mailing list