summaryrefslogtreecommitdiffstats
path: root/libswscale/ops_backend.c
diff options
context:
space:
mode:
authorKacper Michajłow <[email protected]>2025-09-13 16:10:51 +0200
committerKacper Michajłow <[email protected]>2025-09-13 18:14:02 +0200
commit66faef3dbe74bdae40c852caa0ab28ca8cb7a8f7 (patch)
tree23dd5796e41c4f175e9e5811a55400699f6b2e20 /libswscale/ops_backend.c
parenta4fd3f27f4d911e807f9c45931a5fd5d3ae95c87 (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/ops_backend.c')
-rw-r--r--libswscale/ops_backend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/ops_backend.c b/libswscale/ops_backend.c
index ac76dedbee..248a591fd2 100644
--- a/libswscale/ops_backend.c
+++ b/libswscale/ops_backend.c
@@ -98,7 +98,7 @@ static int compile(SwsContext *ctx, SwsOpList *ops, SwsCompiledOp *out)
.block_size = SWS_BLOCK_SIZE,
.cpu_flags = chain->cpu_flags,
.priv = chain,
- .free = (void (*)(void *)) ff_sws_op_chain_free,
+ .free = ff_sws_op_chain_free_cb,
};
return 0;
}