From 3a1cdcc798fd7cb60ef69d1d010f5d56218c4b3a Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Sat, 1 Jan 2011 22:27:16 +0000 Subject: rtpdec: Emit timestamps for packets before the first RTCP packet, too Emitted timestamps in each stream start from 0, for the first received RTP packet. Once an RTCP packet is received, that one is used for sync, emitting timestamps that fit seamlessly into the earlier ones. Originally committed as revision 26187 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/rtpdec.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/rtpdec.h') diff --git a/libavformat/rtpdec.h b/libavformat/rtpdec.h index 778ca92984..c5a521760d 100644 --- a/libavformat/rtpdec.h +++ b/libavformat/rtpdec.h @@ -172,6 +172,7 @@ struct RTPDemuxContext { int64_t last_rtcp_ntp_time; // TODO: move into statistics int64_t first_rtcp_ntp_time; // TODO: move into statistics uint32_t last_rtcp_timestamp; // TODO: move into statistics + int64_t rtcp_ts_offset; /* rtcp sender statistics */ unsigned int packet_count; // TODO: move into statistics (outgoing) -- cgit v1.2.3