diff options
author | Marton Balint <cus@passwd.hu> | 2016-02-22 03:13:20 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2016-03-03 01:37:12 +0100 |
commit | e7dd97b5d8cd6ea150446591f37a5946e8ab7cfb (patch) | |
tree | a8ef1c8aafab6b16fcb69997ffac28200621cd3f /libavformat/internal.h | |
parent | 3af71ac3f9f635856145503f2ace829aad813636 (diff) | |
download | ffmpeg-e7dd97b5d8cd6ea150446591f37a5946e8ab7cfb.tar.gz |
avformat/utils: add a function to standardize creation time
This can be used for formats which write all format metadata as string to
files, therefore non-standard creation times such as 'now' will be parsed.
The standardized creation time is UTC ISO 8601 with microsecond precision.
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r-- | libavformat/internal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h index 8e066552d2..63e0632a5d 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -560,6 +560,14 @@ void ff_format_io_close(AVFormatContext *s, AVIOContext **pb); */ int ff_parse_creation_time_metadata(AVFormatContext *s, int64_t *timestamp, int return_seconds); +/** + * Standardize creation_time metadata in AVFormatContext to an ISO-8601 + * timestamp string. + * + * @param s AVFormatContext + * @return <0 on error + */ +int ff_standardize_creation_time(AVFormatContext *s); #define CONTAINS_PAL 2 /** |