summaryrefslogtreecommitdiff
path: root/libavformat/ifv.c
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2019-07-01 22:00:24 +1000
committerPeter Ross <pross@xvid.org>2019-07-03 21:07:38 +1000
commit9654e97572decb58d0effbfa8d0a0ede3cbe2d95 (patch)
tree70c6c199af205d6ee7ebb6bfc9a4dadb26a35585 /libavformat/ifv.c
parent93a73df54dd92f294c3e84a753c75c64513b4c18 (diff)
downloadffmpeg-9654e97572decb58d0effbfa8d0a0ede3cbe2d95.tar.gz
ifv: populate creation_time
Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com> Signed-off-by: Peter Ross <pross@xvid.org>
Diffstat (limited to 'libavformat/ifv.c')
-rw-r--r--libavformat/ifv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/ifv.c b/libavformat/ifv.c
index 03c682bb9d..6acbb29a75 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);