This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 590fb407b0 avfilter/vf_decimate: reject blocks smaller than one chroma
sample
590fb407b0 is described below
commit 590fb407b09bbf19aac0ea2fbd0ba16f93494601
Author: Michael Niedermayer <[email protected]>
AuthorDate: Tue Sep 15 03:53:51 2026 +0200
Commit: michaelni <[email protected]>
CommitDate: Thu Sep 17 21:55:48 2026 +0000
avfilter/vf_decimate: reject blocks smaller than one chroma sample
Fixes: out of array access
Fixes: division by zero
Fixes: vdfZuLhrGLdR
Found-by: zhang xingxing
Signed-off-by: Michael Niedermayer <[email protected]>
---
libavfilter/vf_decimate.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavfilter/vf_decimate.c b/libavfilter/vf_decimate.c
index 9fee8a1472..f552621d9e 100644
--- a/libavfilter/vf_decimate.c
+++ b/libavfilter/vf_decimate.c
@@ -393,6 +393,10 @@ static int config_output(AVFilterLink *outlink)
dm->hsub = pix_desc->log2_chroma_w;
dm->vsub = pix_desc->log2_chroma_h;
+ if (dm->chroma && ((dm->blockx / 2) >> dm->hsub == 0 || (dm->blocky / 2)
>> dm->vsub == 0)) {
+ av_log(ctx, AV_LOG_ERROR, "blockx and blocky must be at least one
chroma sample\n");
+ return AVERROR(EINVAL);
+ }
dm->depth = pix_desc->comp[0].depth;
max_value = (1 << dm->depth) - 1;
dm->scthresh = (int64_t)(((int64_t)max_value * w * h *
dm->scthresh_flt) / 100);
--
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]