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:
Michael Niedermayer 2024-09-24 22:19:31 +02:00
parent 8b4e32f30b
commit 747e1a26af
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64

View File

@ -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)
ff_progress_frame_report(&f->picture, si);