mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/ffv1dec: Blow up if user asks for explosion
Fixes: Ticket8403 Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
8b4e32f30b
commit
747e1a26af
|
@ -354,6 +354,9 @@ static int decode_slice(AVCodecContext *c, void *arg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sc->slice_damaged && (f->avctx->err_recognition & AV_EF_EXPLODE))
|
||||||
|
return AVERROR_INVALIDDATA;
|
||||||
|
|
||||||
if ((c->active_thread_type & FF_THREAD_FRAME) && !f->frame_damaged)
|
if ((c->active_thread_type & FF_THREAD_FRAME) && !f->frame_damaged)
|
||||||
ff_progress_frame_report(&f->picture, si);
|
ff_progress_frame_report(&f->picture, si);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue