avcodec/ffv1dec: reject unsupported ffv1 versions
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Michael Niedermayer
parent
916be62da1
commit
f0cd5610e0
@@ -439,6 +439,11 @@ static int read_extra_header(FFV1Context *f)
|
|||||||
av_log(f->avctx, AV_LOG_ERROR, "Invalid version in global header\n");
|
av_log(f->avctx, AV_LOG_ERROR, "Invalid version in global header\n");
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
if (f->version > 4) {
|
||||||
|
av_log(f->avctx, AV_LOG_ERROR, "unsupported version %d\n",
|
||||||
|
f->version);
|
||||||
|
return AVERROR_PATCHWELCOME;
|
||||||
|
}
|
||||||
if (f->version > 2) {
|
if (f->version > 2) {
|
||||||
c->bytestream_end -= 4;
|
c->bytestream_end -= 4;
|
||||||
f->micro_version = get_symbol(c, state, 0);
|
f->micro_version = get_symbol(c, state, 0);
|
||||||
|
Reference in New Issue
Block a user