avformat/ivfdec: Change the length field to 32 bits
authorRaphaël Zumer <rzumer@tebako.net>
Tue, 1 Oct 2019 17:40:54 +0000 (13:40 -0400)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Wed, 9 Oct 2019 01:45:00 +0000 (21:45 -0400)
Signed-off-by: Raphaël Zumer <rzumer@tebako.net>
libavformat/ivfdec.c

index 40ae464..4a80257 100644 (file)
@@ -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;