diff options
author | Kacper Michajłow <[email protected]> | 2025-09-13 16:10:51 +0200 |
---|---|---|
committer | Kacper Michajłow <[email protected]> | 2025-09-13 18:14:02 +0200 |
commit | 66faef3dbe74bdae40c852caa0ab28ca8cb7a8f7 (patch) | |
tree | 23dd5796e41c4f175e9e5811a55400699f6b2e20 /libswscale/x86/ops.c | |
parent | a4fd3f27f4d911e807f9c45931a5fd5d3ae95c87 (diff) |
swscale/ops_chain: add type removed ff_sws_op_chain_free_cb
to avoid pointer casting and UB of calling function with different
pointer type.
Signed-off-by: Kacper Michajłow <[email protected]>
Diffstat (limited to 'libswscale/x86/ops.c')
-rw-r--r-- | libswscale/x86/ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/x86/ops.c b/libswscale/x86/ops.c index 82a6d233b9..26f49582ae 100644 --- a/libswscale/x86/ops.c +++ b/libswscale/x86/ops.c @@ -649,7 +649,7 @@ static int compile(SwsContext *ctx, SwsOpList *ops, SwsCompiledOp *out) *out = (SwsCompiledOp) { .priv = chain, - .free = (void (*)(void *)) ff_sws_op_chain_free, + .free = ff_sws_op_chain_free_cb, /* Use at most two full YMM regs during the widest precision section */ .block_size = 2 * FFMIN(mmsize, 32) / ff_sws_op_list_max_size(ops), |