lavf/nutdec: Fix an impossible condition, regression since e0c53c34.

Fixes ticket #6362.
This commit is contained in:
Carl Eugen Hoyos 2017-05-02 08:43:12 +02:00
parent 0a6ca7aa0a
commit 20da413502

View File

@ -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);