From 9d92403add22b29cb908826005af7783b9340df8 Mon Sep 17 00:00:00 2001 From: Raphaël Zumer Date: Tue, 1 Oct 2019 13:40:54 -0400 Subject: avformat/ivfdec: Change the length field to 32 bits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaël Zumer --- libavformat/ivfdec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavformat') diff --git a/libavformat/ivfdec.c b/libavformat/ivfdec.c index 40ae464b76..4a802573e7 100644 --- a/libavformat/ivfdec.c +++ b/libavformat/ivfdec.c @@ -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; -- cgit v1.2.3