Fixes: Ticket8403
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -354,6 +354,9 @@ static int decode_slice(AVCodecContext *c, void *arg) · 353 unmodified lines | ||
| 354 | 354 | } |
| 355 | 355 | } |
| 356 | 356 | |
| 357 | + if (sc->slice_damaged && (f->avctx->err_recognition & AV_EF_EXPLODE)) | |
| 358 | + return AVERROR_INVALIDDATA; | |
| 359 | + | |
| 357 | 360 | if ((c->active_thread_type & FF_THREAD_FRAME) && !f->frame_damaged) |
| 358 | 361 | ff_progress_frame_report(&f->picture, si); |
| 359 | 362 | |