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

Git pushed a commit to branch master
in repository ffmpeg.

commit c6c6874c44859d751dc5a41689311ec897304997
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Wed Jan 14 03:10:40 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Thu Feb 5 17:08:30 2026 +0100

    avfilter/vf_find_rect: Check x/y min/max
    
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavfilter/vf_find_rect.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavfilter/vf_find_rect.c b/libavfilter/vf_find_rect.c
index d3df9c0c45..8415017bbb 100644
--- a/libavfilter/vf_find_rect.c
+++ b/libavfilter/vf_find_rect.c
@@ -191,6 +191,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
     int xmax = FFMIN(foc->xmax, inlink->w - foc->obj_frame->width );
     int ymax = FFMIN(foc->ymax, inlink->h - foc->obj_frame->height);
 
+    if (xmin > xmax || ymin > ymax)
+        av_log(ctx, AV_LOG_WARNING, "x/y min/max are invalid for the current 
frame\n");
+
+
     foc->haystack_frame[0] = av_frame_clone(in);
     for (i=1; i<foc->mipmaps; i++) {
         foc->haystack_frame[i] = downscale(foc->haystack_frame[i-1]);

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

Reply via email to