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

Git pushed a commit to branch master
in repository ffmpeg.

commit 18962a37647f7d62014a56c2eb4d9154e8bedb8e
Author:     Niklas Haas <[email protected]>
AuthorDate: Mon Mar 9 15:45:18 2026 +0100
Commit:     Niklas Haas <[email protected]>
CommitDate: Wed Mar 18 09:09:44 2026 +0000

    swscale/ops: loop over copied list instead of original (cosmetic)
    
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/ops.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libswscale/ops.c b/libswscale/ops.c
index 9bea2f0b4f..ece49e299f 100644
--- a/libswscale/ops.c
+++ b/libswscale/ops.c
@@ -555,11 +555,11 @@ SwsOpList *ff_sws_op_list_duplicate(const SwsOpList *ops)
         return NULL;
     }
 
-    for (int i = 0; i < ops->num_ops; i++) {
-        const SwsOp *op = &ops->ops[i];
+    for (int i = 0; i < copy->num_ops; i++) {
+        const SwsOp *op = &copy->ops[i];
         switch (op->op) {
         case SWS_OP_DITHER:
-            av_refstruct_ref(copy->ops[i].dither.matrix);
+            av_refstruct_ref(op->dither.matrix);
             break;
         }
     }

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

Reply via email to