diff options
author | Raphaël Zumer <rzumer@tebako.net> | 2019-10-01 13:40:54 -0400 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2019-10-08 21:45:00 -0400 |
commit | 9d92403add22b29cb908826005af7783b9340df8 (patch) | |
tree | cd456cce09c496a3059138b159c7d47866eca719 | |
parent | d3807467b2587ea720f32933d44b9dac5ecda66b (diff) |
avformat/ivfdec: Change the length field to 32 bits
Signed-off-by: Raphaël Zumer <rzumer@tebako.net>
-rw-r--r-- | libavformat/ivfdec.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |