avcodec/ffv1dec: Blow up if user asks for explosion

Fixes: Ticket8403

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/153/merge
Michael Niedermayer 3 months ago
parent 8b4e32f30b
commit 747e1a26af
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
  1. 3
      libavcodec/ffv1dec.c

@ -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);

Loading…
Cancel
Save