Commit 03baa861 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/ffv1dec: More completely check micro_version

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3dfbdb32
......@@ -528,6 +528,8 @@ static int read_extra_header(FFV1Context *f)
if (f->version > 2) {
c->bytestream_end -= 4;
f->micro_version = get_symbol(c, state, 0);
if (f->micro_version < 0)
return AVERROR_INVALIDDATA;
}
f->ac = f->avctx->coder_type = get_symbol(c, state, 0);
if (f->ac > 1) {
......
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