1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2026-06-19 19:03:00 +02:00

swscale/tests/sws_ops_aarch64: remove on-stack copy of const data

It doesn't get modified, so there's no need to create a copy.
This commit is contained in:
Ramiro Polla
2026-06-12 01:04:49 +02:00
parent 9ea36321f9
commit b532f4a6ce
+2 -4
View File
@@ -93,14 +93,12 @@ static int register_op(SwsContext *ctx, void *opaque, SwsOpList *ops)
}
}
/* Make on-stack copy of `ops` to iterate over */
SwsOpList rest = *ops;
/* Use at most two full vregs during the widest precision section */
int block_size = (ff_sws_op_list_max_size(ops) == 4) ? 8 : 16;
for (int i = 0; i < rest.num_ops; i++) {
for (int i = 0; i < ops->num_ops; i++) {
SwsAArch64OpImplParams params = { 0 };
ret = convert_to_aarch64_impl(ctx, &rest, i, block_size, &params);
ret = convert_to_aarch64_impl(ctx, ops, i, block_size, &params);
if (ret == AVERROR(ENOTSUP))
continue;
if (ret < 0)