Commit 20da4135 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

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

Fixes ticket #6362.
parent 0a6ca7aa
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment