summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-01-01 22:27:16 +0000
committerMartin Storsjö <martin@martin.st>2011-01-01 22:27:16 +0000
commit3a1cdcc798fd7cb60ef69d1d010f5d56218c4b3a (patch)
treea07de61f687827dc5a3bd9b70cae18e6eefb77f0 /libavformat/rtpdec.h
parentdfaa9f3cb328f245cc1f9c56145a21c6d6e58f42 (diff)
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
Diffstat (limited to 'libavformat/rtpdec.h')
-rw-r--r--libavformat/rtpdec.h1
1 files changed, 1 insertions, 0 deletions
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)