mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 00:32:31 +00:00
lavf/nutdec: Fix an impossible condition, regression since e0c53c34
.
Fixes ticket #6362.
This commit is contained in:
parent
0a6ca7aa0a
commit
20da413502
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user