[FFmpeg-cvslog] r22543 - trunk/libavformat/rtpenc.c

mstorsjo subversion
Mon Mar 15 11:37:12 CET 2010


Author: mstorsjo
Date: Mon Mar 15 11:37:12 2010
New Revision: 22543

Log:
Use AVFormatContext.start_time_realtime in the RTP muxer

Modified:
   trunk/libavformat/rtpenc.c

Modified: trunk/libavformat/rtpenc.c
==============================================================================
--- trunk/libavformat/rtpenc.c	Mon Mar 15 11:36:30 2010	(r22542)
+++ trunk/libavformat/rtpenc.c	Mon Mar 15 11:37:12 2010	(r22543)
@@ -86,6 +86,10 @@ static int rtp_write_header(AVFormatCont
     s->ssrc = 0; /* FIXME: was random(), what should this be? */
     s->first_packet = 1;
     s->first_rtcp_ntp_time = ff_ntp_time();
+    if (s1->start_time_realtime)
+        /* Round the NTP time to whole milliseconds. */
+        s->first_rtcp_ntp_time = (s1->start_time_realtime / 1000) * 1000 +
+                                 NTP_OFFSET_US;
 
     max_packet_size = url_fget_max_packet_size(s1->pb);
     if (max_packet_size <= 12)



More information about the ffmpeg-cvslog mailing list