# HG changeset patch # User mstorsjo # Date 1268649432 0 # Node ID cc35562d3747876d6dc3dbb5ea067565af2efe68 # Parent ba41d38652532157e553dd6519555781bf8c07d4 Use AVFormatContext.start_time_realtime in the RTP muxer diff -r ba41d3865253 -r cc35562d3747 rtpenc.c --- a/rtpenc.c Mon Mar 15 10:36:30 2010 +0000 +++ b/rtpenc.c Mon Mar 15 10:37:12 2010 +0000 @@ -86,6 +86,10 @@ 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)