[svn-commits] branch group/rtpjitterbuffer r30872 - /team/group/rtpjitterbuffer/rtp.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Tue May 30 12:11:06 MST 2006


Author: russell
Date: Tue May 30 14:11:05 2006
New Revision: 30872

URL: http://svn.digium.com/view/asterisk?rev=30872&view=rev
Log:
if a frame has timing information, pass it along instead of generating new
timestamps so that at points later along the call path can properly do
jitter buffering on the audio

Modified:
    team/group/rtpjitterbuffer/rtp.c

Modified: team/group/rtpjitterbuffer/rtp.c
URL: http://svn.digium.com/view/asterisk/team/group/rtpjitterbuffer/rtp.c?rev=30872&r1=30871&r2=30872&view=diff
==============================================================================
--- team/group/rtpjitterbuffer/rtp.c (original)
+++ team/group/rtpjitterbuffer/rtp.c Tue May 30 14:11:05 2006
@@ -1696,6 +1696,9 @@
 	if (rtp->lastts > rtp->lastdigitts)
 		rtp->lastdigitts = rtp->lastts;
 
+	if (f->has_timing_info)
+		rtp->lastts = f->ts * 8;
+
 	/* Get a pointer to the header */
 	rtpheader = (unsigned char *)(f->data - hdrlen);
 



More information about the svn-commits mailing list