diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2017-05-02 09:43:12 +0300 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2017-05-02 09:43:12 +0300 |
commit | 20da4135020fdf66f6060bb14926befbcc42a7dd (patch) | |
tree | dff19cb0ee0cb3c588b1daf1a05984810ec45351 /libavformat | |
parent | 0a6ca7aa0aa139b67f8e6bd1453c3aab291d4a26 (diff) |
lavf/nutdec: Fix an impossible condition, regression since e0c53c34.
Fixes ticket #6362.
Diffstat (limited to 'libavformat')
-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 4272f8816c..27440c88d4 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nutdec.c @@ -202,7 +202,7 @@ static int decode_main_header(NUTContext *nut) end += avio_tell(bc); nut->version = ffio_read_varlen(bc); - if (nut->version < NUT_MIN_VERSION && + if (nut->version < NUT_MIN_VERSION || nut->version > NUT_MAX_VERSION) { av_log(s, AV_LOG_ERROR, "Version %d not supported.\n", nut->version); |