You've already forked FFmpeg
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user