summaryrefslogtreecommitdiff
path: root/libavformat/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r--libavformat/internal.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index 13e0a3df30..d0b9d6200a 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -450,6 +450,24 @@ do {\
} while(0)
#endif
+#define RELATIVE_TS_BASE (INT64_MAX - (1LL << 48))
+
+static av_always_inline int is_relative(int64_t ts)
+{
+ return ts > (RELATIVE_TS_BASE - (1LL << 48));
+}
+
+/**
+ * Wrap a given time stamp, if there is an indication for an overflow
+ *
+ * @param st stream
+ * @param timestamp the time stamp to wrap
+ * @return resulting time stamp
+ */
+int64_t ff_wrap_timestamp(const AVStream *st, int64_t timestamp);
+
+void ff_flush_packet_queue(AVFormatContext *s);
+
/**
* Automatically create sub-directories
*