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 <kasper93@gmail.com>
This commit is contained in:
Kacper Michajłow 2025-09-13 16:10:51 +02:00
parent a4fd3f27f4
commit 66faef3dbe
No known key found for this signature in database
GPG key ID: 6580132338ABD4E2
4 changed files with 10 additions and 5 deletions

View file

@ -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),