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

Freeswitch SVN anthm at freeswitch.org
Fri Nov 2 17:34:11 EDT 2007


Author: anthm
Date: Fri Nov  2 17:34:11 2007
New Revision: 6151

Modified:
   freeswitch/trunk/src/switch_rtp.c

Log:
tweak rtp

Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c	(original)
+++ freeswitch/trunk/src/switch_rtp.c	Fri Nov  2 17:34:11 2007
@@ -1611,11 +1611,10 @@
 			rtp_session->ts = (uint32_t) frame->timestamp;
 		} else if (rtp_session->timer.timer_interface) {
 			uint32_t sc = rtp_session->timer.samplecount;
-			if (rtp_session->last_write_ts == sc) {
-				rtp_session->ts = sc + rtp_session->samples_per_interval;
-			} else {
-				rtp_session->ts = sc;
+			if (sc <= rtp_session->last_write_ts) {
+				sc = rtp_session->last_write_ts + rtp_session->samples_per_interval;
 			}
+			rtp_session->ts = sc;
 		} else {
 			rtp_session->ts += rtp_session->samples_per_interval;
 		}



More information about the Freeswitch-svn mailing list