X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fivfdec.c;h=4a802573e7e1291631fc078c5594ab9c7deecf42;hb=131f2c2712479a44332866b442526abe97e0c316;hp=197c099bc3312f35cfb9edbcfd642ab718efe58c;hpb=493240a522fca34882601fbeeda4e17aa40a0303;p=ffmpeg diff --git a/libavformat/ivfdec.c b/libavformat/ivfdec.c index 197c099bc33..4a802573e7e 100644 --- a/libavformat/ivfdec.c +++ b/libavformat/ivfdec.c @@ -23,7 +23,7 @@ #include "riff.h" #include "libavutil/intreadwrite.h" -static int probe(AVProbeData *p) +static int probe(const AVProbeData *p) { if (AV_RL32(p->buf) == MKTAG('D','K','I','F') && !AV_RL16(p->buf+4) && AV_RL16(p->buf+6) == 32) @@ -53,7 +53,8 @@ static int read_header(AVFormatContext *s) st->codecpar->height = avio_rl16(s->pb); time_base.den = avio_rl32(s->pb); time_base.num = avio_rl32(s->pb); - st->duration = avio_rl64(s->pb); + st->duration = avio_rl32(s->pb); + avio_skip(s->pb, 4); // unused st->need_parsing = AVSTREAM_PARSE_HEADERS;