Commit 6b041cb6 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/nutdec: Fix handling of older 4.0 files

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 170a4d79
...@@ -341,7 +341,7 @@ static int decode_main_header(NUTContext *nut) ...@@ -341,7 +341,7 @@ static int decode_main_header(NUTContext *nut)
} }
// flags had been effectively introduced in version 4 // flags had been effectively introduced in version 4
if (nut->version > NUT_STABLE_VERSION) { if (nut->version > 3 && end > avio_tell(bc) + 4) {
nut->flags = ffio_read_varlen(bc); nut->flags = ffio_read_varlen(bc);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment