mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-07 00:20:09 +02:00
avcodec/ffv1dec: More completely check micro_version
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3dfbdb328e
commit
03baa861ea
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user