[FFmpeg-cvslog] ifv: populate creation_time

Peter Ross git at videolan.org
Wed Jul 3 14:08:32 EEST 2019


ffmpeg | branch: master | Peter Ross <pross at xvid.org> | Mon Jul  1 22:00:24 2019 +1000| [9654e97572decb58d0effbfa8d0a0ede3cbe2d95] | committer: Peter Ross

ifv: populate creation_time

Reviewed-by: Carl Eugen Hoyos <ceffmpeg at gmail.com>
Signed-off-by: Peter Ross <pross at xvid.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9654e97572decb58d0effbfa8d0a0ede3cbe2d95
---

 libavformat/ifv.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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);
 



More information about the ffmpeg-cvslog mailing list