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

Git pushed a commit to branch master
in repository ffmpeg.

commit 345ce5a7631e3d95897e0d773a343148aa5021f1
Author:     Ramiro Polla <[email protected]>
AuthorDate: Tue Oct 27 15:29:40 2026 +0100
Commit:     Ramiro Polla <[email protected]>
CommitDate: Wed Oct 28 13:05:17 2026 +0000

    swscale/tests/swscale: factor plane count out of loop condition
---
 libswscale/tests/swscale.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libswscale/tests/swscale.c b/libswscale/tests/swscale.c
index 10533722c7..869a24472b 100644
--- a/libswscale/tests/swscale.c
+++ b/libswscale/tests/swscale.c
@@ -279,7 +279,8 @@ static int get_buffer(AVFrame *frame, int align)
     if (ret < 0 || align >= 0)
         return ret;
 
-    for (int p = 0; p < av_pix_fmt_count_planes(frame->format); p++) {
+    const int nb_planes = av_pix_fmt_count_planes(frame->format);
+    for (int p = 0; p < nb_planes; p++) {
         const int is_chroma = p == 1 || p == 2;
         const int h = is_chroma ? AV_CEIL_RSHIFT(frame->height, 
desc->log2_chroma_h)
                                 : frame->height;

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