--- Small patch, to extract timestamp from IFV file header. 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);
--
2.20.1
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
signature.asc
Description: PGP signature
_______________________________________________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
