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:
parent
a4fd3f27f4
commit
66faef3dbe
4 changed files with 10 additions and 5 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue