]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/internal.h
avformat/mov: Check sample size for overflow in mov_parse_stsd_audio()
[ffmpeg] / libavformat / internal.h
index a810d51bba51f0511e9273c9ed58147b149287c5..8631694d00c8430cddda0189db428700ba95906b 100644 (file)
@@ -98,6 +98,9 @@ struct AVFormatInternal {
      * for short periods that are guaranteed not to overlap
      * with calls to av_read_frame() (or ff_read_packet())
      * or with each other.
+     * It may be used by demuxers as a replacement for
+     * stack packets (unless they call one of the aforementioned
+     * functions with their own AVFormatContext).
      * Every user has to ensure that this packet is blank
      * after using it.
      */
@@ -423,6 +426,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.