You've already forked FFmpeg
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:
@@ -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, ¶ms);
|
||||
ret = convert_to_aarch64_impl(ctx, ops, i, block_size, ¶ms);
|
||||
if (ret == AVERROR(ENOTSUP))
|
||||
continue;
|
||||
if (ret < 0)
|
||||
|
||||
Reference in New Issue
Block a user