summaryrefslogtreecommitdiff
path: root/libavformat/internal.h
diff options
context:
space:
mode:
authorAlok Priyadarshi <alokpr@gmail.com>2021-03-23 14:29:48 -0700
committerJames Almer <jamrial@gmail.com>2021-03-23 19:02:47 -0300
commitadff25412a2929de67e44da1abaf67f9a267bdf4 (patch)
treeb9872591f50e9d0257a4fe8e99940c0ade55701d /libavformat/internal.h
parent3220a908ca3c9e2d4108464f2127fdbb7479e69a (diff)
avformat/rtpdec: attach producer reference time if available
This produces true wallclock time at rtp source instead of the local wallclock time at rtp client. Signed-off-by: James Almer <jamrial@gmail.com>
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 a810d51bba..d85b9a3d9b 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -424,6 +424,14 @@ uint64_t ff_ntp_time(void);
uint64_t ff_get_formatted_ntp_time(uint64_t ntp_time_us);
/**
+ * Parse the NTP time in micro seconds (since NTP epoch).
+ *
+ * @param ntp_ts NTP time stamp formatted as per the RFC-5905.
+ * @return the time in micro seconds (since NTP epoch)
+ */
+uint64_t ff_parse_ntp_time(uint64_t ntp_ts);
+
+/**
* Append the media-specific SDP fragment for the media stream c
* to the buffer buff.
*