Commit b6969106a9 for ffmpeg
commit b6969106a999f031297753450e91d5def6e18c7d
Author: Niklas Haas <git@haasn.dev>
Date: Thu Oct 8 13:08:13 2026 +0200
swscale/ops: assume read ops forward untouched extra lanes
Currently, these end up as unset; but we should pass them through
in case there are multiple read ops in a row.
Signed-off-by: Niklas Haas <git@haasn.dev>
diff --git a/libswscale/ops.c b/libswscale/ops.c
index c24e0d2bed..7c16b8a4b2 100644
--- a/libswscale/ops.c
+++ b/libswscale/ops.c
@@ -432,6 +432,10 @@ void ff_sws_op_list_update_comps(SwsOpList *ops)
dst->flags |= SWS_COMP_COPY;
}
}
+
+ /* Forward unused/untouched components */
+ for (int i = op->rw.elems; i < 4; i++)
+ FORWARD(i, i, flags);
break;
case SWS_OP_SWAP_BYTES:
for (int i = 0; i < 4; i++) {