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

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

commit a3779c8d75491cb31760326c415826c78e975f25
Author:     Marius Momeu <[email protected]>
AuthorDate: Sat May 2 15:02:54 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Tue May 5 19:27:35 2026 +0200

    avfilter/vf_kerndeint: Check for minimum height
    
    Fixes: out of array access
    
    Signed-off-by: Michael Niedermayer <[email protected]>
    (cherry picked from commit e32b2c8886877a18e2951d9643c07020c76f6453)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavfilter/vf_kerndeint.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libavfilter/vf_kerndeint.c b/libavfilter/vf_kerndeint.c
index 057d15f9cb..e2aa6f2ed8 100644
--- a/libavfilter/vf_kerndeint.c
+++ b/libavfilter/vf_kerndeint.c
@@ -92,6 +92,12 @@ static int config_props(AVFilterLink *inlink)
 
     kerndeint->is_packed_rgb = av_pix_fmt_desc_get(inlink->format)->flags & 
AV_PIX_FMT_FLAG_RGB;
     kerndeint->vsub = desc->log2_chroma_h;
+    if (AV_CEIL_RSHIFT(inlink->h, kerndeint->vsub) < 4) {
+        av_log(inlink->dst, AV_LOG_ERROR,
+               "Input height %d is too small; minimum chroma plane height is 
4\n",
+               inlink->h);
+        return AVERROR(EINVAL);
+    }
 
     ret = av_image_alloc(kerndeint->tmp_data, kerndeint->tmp_linesize,
                          inlink->w, inlink->h, inlink->format, 16);

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to