Message ID | 93ed2b436f2031bf876cd2ea32beeeecc2f1e1de.1561983837.git.pross@xvid.org |
---|---|
State | Accepted |
Commit | 9654e97572decb58d0effbfa8d0a0ede3cbe2d95 |
Headers | show |
Am Mo., 1. Juli 2019 um 14:26 Uhr schrieb Peter Ross <pross@xvid.org>: > > --- > Small patch, to extract timestamp from IFV file header. lgtm if tested. Thank you, Carl Eugen
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);