mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-21 06:20:09 +01:00
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:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user