Commit 44f52d42 authored by mstorsjo's avatar mstorsjo

Use AVFormatContext.start_time_realtime in the RTP muxer


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22543 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent bcc31edb
...@@ -86,6 +86,10 @@ static int rtp_write_header(AVFormatContext *s1) ...@@ -86,6 +86,10 @@ static int rtp_write_header(AVFormatContext *s1)
s->ssrc = 0; /* FIXME: was random(), what should this be? */ s->ssrc = 0; /* FIXME: was random(), what should this be? */
s->first_packet = 1; s->first_packet = 1;
s->first_rtcp_ntp_time = ff_ntp_time(); 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); max_packet_size = url_fget_max_packet_size(s1->pb);
if (max_packet_size <= 12) if (max_packet_size <= 12)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment