This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch release/8.1
in repository ffmpeg.

commit e8c2decf6d6fc2c17d373dcc6685824dd90d0158
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Sep 15 03:53:51 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sat Sep 19 14:27:20 2026 +0200

    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]>
    (cherry picked from commit 590fb407b09bbf19aac0ea2fbd0ba16f93494601)
    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]

Reply via email to