Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2016-02-04 05:28:19 +0300
committerMarton Balint <cus@passwd.hu>2016-02-14 03:51:14 +0300
commite942454daf050047142147f75743d1bb6b98d911 (patch)
tree26198ff620cb32bb4c91361a125b3d14d9f7027e /libavformat/internal.h
parentf834f0cab60f764664a78bad71aec8374e45876e (diff)
avformat/utils: add ff_parse_creation_time_metadata
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r--libavformat/internal.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index 8e718058fd..dc76f2c4a7 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -554,4 +554,15 @@ int ffio_open2_wrapper(struct AVFormatContext *s, AVIOContext **pb, const char *
*/
void ff_format_io_close(AVFormatContext *s, AVIOContext **pb);
+/**
+ * Parse creation_time in AVFormatContext metadata if exists and warn if the
+ * parsing fails.
+ *
+ * @param s AVFormatContext
+ * @param timestamp parsed timestamp in microseconds, only set on successful parsing
+ * @param return_seconds set this to get the number of seconds in timestamp instead of microseconds
+ * @return 1 if OK, 0 if the metadata was not present, AVERROR(EINVAL) on parse error
+ */
+int ff_parse_creation_time_metadata(AVFormatContext *s, int64_t *timestamp, int return_seconds);
+
#endif /* AVFORMAT_INTERNAL_H */