From 9654e97572decb58d0effbfa8d0a0ede3cbe2d95 Mon Sep 17 00:00:00 2001 From: Peter Ross Date: Mon, 1 Jul 2019 22:00:24 +1000 Subject: [PATCH] ifv: populate creation_time Reviewed-by: Carl Eugen Hoyos Signed-off-by: Peter Ross --- libavformat/ifv.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavformat/ifv.c b/libavformat/ifv.c index 03c682bb9d2..6acbb29a759 100644 --- a/libavformat/ifv.c +++ b/libavformat/ifv.c @@ -90,7 +90,10 @@ static int parse_header(AVFormatContext *s) uint32_t aud_magic; uint32_t vid_magic; - avio_skip(s->pb, 0x5c); + avio_skip(s->pb, 0x34); + avpriv_dict_set_timestamp(&s->metadata, "creation_time", avio_rl32(s->pb) * 1000000LL); + avio_skip(s->pb, 0x24); + ifv->width = avio_rl16(s->pb); ifv->height = avio_rl16(s->pb); -- 2.39.2