[FFmpeg-devel] [PATCH] rtpdec: make the NTP time values unsigned.

Diego Elio 'Flameeyes' Pettenò flameeyes
Wed Jul 14 09:51:10 CEST 2010


As per RFC3550, section 4, the NTP time is provided as 64-bit unsigned
integer, so follow the same logic here.
---
 libavformat/rtpdec.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/rtpdec.h b/libavformat/rtpdec.h
index 86af2b9..87fd419 100644
--- a/libavformat/rtpdec.h
+++ b/libavformat/rtpdec.h
@@ -148,8 +148,8 @@ struct RTPDemuxContext {
     RTPStatistics statistics; ///< Statistics for this stream (used by RTCP receiver reports)
 
     /* rtcp sender statistics receive */
-    int64_t last_rtcp_ntp_time;    // TODO: move into statistics
-    int64_t first_rtcp_ntp_time;   // TODO: move into statistics
+    uint64_t last_rtcp_ntp_time;   // TODO: move into statistics
+    uint64_t first_rtcp_ntp_time;  // TODO: move into statistics
     uint32_t last_rtcp_timestamp;  // TODO: move into statistics
 
     /* rtcp sender statistics */
-- 
1.7.1.1




More information about the ffmpeg-devel mailing list