summaryrefslogtreecommitdiff
path: root/libavformat/internal.h
diff options
context:
space:
mode:
authorVishwanath Dixit <vdixit@akamai.com>2018-05-07 15:27:36 +0530
committerKarthick Jeyapal <kjeyapal@akamai.com>2018-05-29 09:31:29 +0530
commitf09635f2a2e653ab5f790b1e9d7a15794745ca30 (patch)
treec596cdb393f701e0148af622dfbe606a4139ceba /libavformat/internal.h
parent8a4dbd3e9fd13a0941bbb63d249ed92c2037fd4c (diff)
avformat/utils: function to get the formatted ntp time
This utility function creates 64-bit NTP time format as per the RFC 5905. A simple explaination of 64-bit NTP time format is here http://www.beaglesoft.com/Manual/page53.htm
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r--libavformat/internal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index 3582682925..0b8120b842 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -240,6 +240,14 @@ void ff_read_frame_flush(AVFormatContext *s);
uint64_t ff_ntp_time(void);
/**
+ * Get the NTP time stamp formatted as per the RFC-5905.
+ *
+ * @param ntp_time NTP time in micro seconds (since NTP epoch)
+ * @return the formatted NTP time stamp
+ */
+uint64_t ff_get_formatted_ntp_time(uint64_t ntp_time_us);
+
+/**
* Append the media-specific SDP fragment for the media stream c
* to the buffer buff.
*