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

Git pushed a commit to branch master
in repository ffmpeg.

commit f6d963553b0bf9cfe32500ef160637c6e2ff0660
Author:     Niklas Haas <[email protected]>
AuthorDate: Wed Mar 18 16:30:28 2026 +0100
Commit:     Niklas Haas <[email protected]>
CommitDate: Sat Mar 28 16:48:13 2026 +0000

    swscale/ops: correctly uninit all ops in ff_sws_op_list_remove_at()
    
    This only ever removed a single op, even with count > 1.
    
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/ops.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libswscale/ops.c b/libswscale/ops.c
index ece49e299f..ae77b19f99 100644
--- a/libswscale/ops.c
+++ b/libswscale/ops.c
@@ -589,7 +589,8 @@ void ff_sws_op_list_remove_at(SwsOpList *ops, int index, 
int count)
 {
     const int end = ops->num_ops - count;
     av_assert2(index >= 0 && count >= 0 && index + count <= ops->num_ops);
-    op_uninit(&ops->ops[index]);
+    for (int i = 0; i < count; i++)
+        op_uninit(&ops->ops[index + i]);
     for (int i = index; i < end; i++)
         ops->ops[i] = ops->ops[i + count];
     ops->num_ops = end;

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

Reply via email to