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

Git pushed a commit to branch master
in repository ffmpeg.

commit 3e3808b699d83d0c9ac54168f4a1a1649ebd92d0
Author:     Niklas Haas <[email protected]>
AuthorDate: Tue Sep 15 15:46:22 2026 +0200
Commit:     Niklas Haas <[email protected]>
CommitDate: Sun Sep 20 13:09:12 2026 +0000

    swscale/ops_dispatch: cosmetic
    
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/ops_dispatch.c | 24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/libswscale/ops_dispatch.c b/libswscale/ops_dispatch.c
index a1f43a867c..1ec8c1e85a 100644
--- a/libswscale/ops_dispatch.c
+++ b/libswscale/ops_dispatch.c
@@ -595,7 +595,9 @@ static int compile_single(const CompileArgs *args, const 
SwsOpList *ops,
     p->planes_out     = rw_data_planes(write);
     p->pixel_bits_out = rw_pixel_bits(write);
     p->palette_idx    = -1;
-    p->exec_base = (SwsOpExec) {
+
+    SwsOpExec *exec = &p->exec_base;
+    *exec = (SwsOpExec) {
         .width  = dst->width,
         .height = dst->height,
     };
@@ -624,9 +626,9 @@ static int compile_single(const CompileArgs *args, const 
SwsOpList *ops,
         const int chroma = idx == 1 || idx == 2;
         const int sub_x = chroma ? indesc->log2_chroma_w : 0;
         const int sub_y = chroma ? indesc->log2_chroma_h : 0;
-        p->exec_base.in_sub_x[i] = sub_x;
-        p->exec_base.in_sub_y[i] = sub_y;
-        p->exec_base.block_size_in[i] = block_bits_in >> 3;
+        exec->in_sub_x[i] = sub_x;
+        exec->in_sub_y[i] = sub_y;
+        exec->block_size_in[i] = block_bits_in >> 3;
         p->idx_in[i] = idx;
     }
 
@@ -635,9 +637,9 @@ static int compile_single(const CompileArgs *args, const 
SwsOpList *ops,
         const int chroma = idx == 1 || idx == 2;
         const int sub_x = chroma ? outdesc->log2_chroma_w : 0;
         const int sub_y = chroma ? outdesc->log2_chroma_h : 0;
-        p->exec_base.out_sub_x[i] = sub_x;
-        p->exec_base.out_sub_y[i] = sub_y;
-        p->exec_base.block_size_out[i] = block_bits_out >> 3;
+        exec->out_sub_x[i] = sub_x;
+        exec->out_sub_y[i] = sub_y;
+        exec->block_size_out[i] = block_bits_out >> 3;
         p->idx_out[i] = idx;
     }
 
@@ -660,16 +662,16 @@ static int compile_single(const CompileArgs *args, const 
SwsOpList *ops,
             line = next;
         }
         bump[filter->dst_size - 1] = 0;
-        p->exec_base.in_bump_y = bump;
+        exec->in_bump_y = bump;
     } else if (read && read->rw.filter.op == SWS_OP_FILTER_H) {
         /* Compute pixel offset map for each output line */
-        const int pixels = FFALIGN(filter->dst_size, p->comp.block_size);
+        const int pixels = FFALIGN(filter->dst_size, comp->block_size);
         int32_t *offset = av_malloc_array(pixels, sizeof(*offset));
         if (!offset) {
             ret = AVERROR(ENOMEM);
             goto fail;
         }
-        p->exec_base.in_offset_x = offset;
+        exec->in_offset_x = offset;
 
         for (int x = 0; x < filter->dst_size; x++) {
             /* Sanity check; if the tap would land on a half-pixel, we cannot
@@ -685,7 +687,7 @@ static int compile_single(const CompileArgs *args, const 
SwsOpList *ops,
         for (int x = filter->dst_size; x < pixels; x++)
             offset[x] = offset[filter->dst_size - 1];
         for (int i = 0; i < 4; i++)
-            p->exec_base.block_size_in[i] = 0; /* ptr does not advance */
+            exec->block_size_in[i] = 0; /* ptr does not advance */
         p->filter_size_h = filter->filter_size;
     }
 

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