Mercurial > libavformat.hg
changeset 5842:cc35562d3747 libavformat
Use AVFormatContext.start_time_realtime in the RTP muxer
author | mstorsjo |
---|---|
date | Mon, 15 Mar 2010 10:37:12 +0000 |
parents | ba41d3865253 |
children | 777a89fdb1c0 |
files | rtpenc.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)