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

Git pushed a commit to branch master
in repository ffmpeg.

commit a02f66e1cfd67dd7d6070c2e6018ef0bb6d2f7ee
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Mon Sep 28 17:27:58 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Sun Oct 11 00:45:42 2026 +0000

    avfilter/vf_libopencv: index the shape file with size_t
    
    Fixes: signed integer overflow
    Found during review of the read_shape_from_file() fixes
---
 libavfilter/vf_libopencv.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavfilter/vf_libopencv.c b/libavfilter/vf_libopencv.c
index a650a42c77..e9b5cdc7d0 100644
--- a/libavfilter/vf_libopencv.c
+++ b/libavfilter/vf_libopencv.c
@@ -130,8 +130,8 @@ static int read_shape_from_file(int *cols, int *rows, int 
**values, const char *
                                 void *log_ctx)
 {
     uint8_t *buf, *p, *pend;
-    size_t size;
-    int ret, i, j, w;
+    size_t size, i;
+    int ret, j, w;
 
     if ((ret = av_file_map(filename, &buf, &size, 0, log_ctx)) < 0)
         return ret;
@@ -201,7 +201,7 @@ end:
             for (j = 0; j < *cols; j++)
                 line[j] = (*values)[i * *cols + j] ? '@' : ' ';
             line[j] = 0;
-            av_log(log_ctx, AV_LOG_DEBUG, "%3d: %s\n", i, line);
+            av_log(log_ctx, AV_LOG_DEBUG, "%3zu: %s\n", i, line);
         }
         av_free(line);
     }

-- 
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