diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-29 01:48:02 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-29 01:48:02 +0200 |
commit | 6b041cb617e5d5e4fc46c8be91c127c6b366bc79 (patch) | |
tree | 2d324ad76e4fe6a5136f5d10015ece46a088885b | |
parent | 170a4d79c04c81625ffe16f577a6ade4404c8319 (diff) | |
download | ffmpeg-6b041cb617e5d5e4fc46c8be91c127c6b366bc79.tar.gz |
avformat/nutdec: Fix handling of older 4.0 files
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/nutdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index 5fd2a40f42..7da6f2c441 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nutdec.c @@ -341,7 +341,7 @@ static int decode_main_header(NUTContext *nut) } // 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); } |