X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fivfdec.c;h=4a802573e7e1291631fc078c5594ab9c7deecf42;hb=626535f6a169e2d821b969e0ea77125ba7482113;hp=197c099bc3312f35cfb9edbcfd642ab718efe58c;hpb=d6b62ce1aced9e2456582870382f384581cc7cbb;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;