mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-29 02:42:21 +00:00
nut: Use nut->version in the version range check
It was wrongly left unchanged when the version field had been
introduced. (c94e2e85cb
)
This commit is contained in:
parent
79fce1ec8a
commit
52a1c32c0a
@ -214,9 +214,10 @@ static int decode_main_header(NUTContext *nut)
|
||||
end += avio_tell(bc);
|
||||
|
||||
nut->version = ffio_read_varlen(bc);
|
||||
if (tmp < NUT_MIN_VERSION && tmp > NUT_MAX_VERSION) {
|
||||
av_log(s, AV_LOG_ERROR, "Version %"PRId64" not supported.\n",
|
||||
tmp);
|
||||
if (nut->version < NUT_MIN_VERSION &&
|
||||
nut->version > NUT_MAX_VERSION) {
|
||||
av_log(s, AV_LOG_ERROR, "Version %d not supported.\n",
|
||||
nut->version);
|
||||
return AVERROR(ENOSYS);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user