[FFmpeg-devel] [PATCH 1/4] avcodec/ffv1dec: Blow up if user asks for explosion
Michael Niedermayer
michael at niedermayer.cc
Wed Sep 25 01:24:08 EEST 2024
Fixes: Ticket8403
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavcodec/ffv1dec.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavcodec/ffv1dec.c b/libavcodec/ffv1dec.c
index 415c66be636..0afdeabd915 100644
--- a/libavcodec/ffv1dec.c
+++ b/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);
--
2.46.1
More information about the ffmpeg-devel
mailing list