1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-11-23 21:54:53 +02:00

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
4 changed files with 10 additions and 5 deletions

View File

@@ -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;
}