mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02: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);
|
end += avio_tell(bc);
|
||||||
|
|
||||||
nut->version = ffio_read_varlen(bc);
|
nut->version = ffio_read_varlen(bc);
|
||||||
if (nut->version < NUT_MIN_VERSION &&
|
if (nut->version < NUT_MIN_VERSION ||
|
||||||
nut->version > NUT_MAX_VERSION) {
|
nut->version > NUT_MAX_VERSION) {
|
||||||
av_log(s, AV_LOG_ERROR, "Version %d not supported.\n",
|
av_log(s, AV_LOG_ERROR, "Version %d not supported.\n",
|
||||||
nut->version);
|
nut->version);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user