summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2013-01-09 18:56:17 +0200
committerMartin Storsjö <martin@martin.st>2013-01-12 19:55:49 +0200
commit22c436c85e0dd81702b4e9289b90755b7310982f (patch)
treeb27243a7c15a7b44b473201743feb23ec6ce4916 /libavformat/rtpdec.h
parente568db40258d549777ac1c16971678e18a18f5f5 (diff)
rtpdec: Send a valid "delay since SR" value in the RTCP RR packets
Previously, we always signalled a zero time since the last RTCP SR, which is dubious. The code also suggested that this would be the difference in RTP NTP time units (32.32 fixed point), while it actually is in in 1/65536 second units. (RFC 3550 section 6.4.1) Signed-off-by: Martin Storsjö <martin@martin.st>
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 ee085b1843..6c808cdd57 100644
--- a/libavformat/rtpdec.h
+++ b/libavformat/rtpdec.h
@@ -175,6 +175,7 @@ struct RTPDemuxContext {
/* rtcp sender statistics receive */
int64_t last_rtcp_ntp_time;
+ int64_t last_rtcp_reception_time;
int64_t first_rtcp_ntp_time;
uint32_t last_rtcp_timestamp;
int64_t rtcp_ts_offset;