diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-29 03:48:02 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-29 03:48:02 +0400 |
commit | 6b041cb617e5d5e4fc46c8be91c127c6b366bc79 (patch) | |
tree | 2d324ad76e4fe6a5136f5d10015ece46a088885b /libavformat/nutdec.c | |
parent | 170a4d79c04c81625ffe16f577a6ade4404c8319 (diff) |
avformat/nutdec: Fix handling of older 4.0 files
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/nutdec.c')
-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); } |