mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avformat/nutdec: Fix handling of older 4.0 files
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
170a4d79c0
commit
6b041cb617
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user