mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
lavu: add calling convention for OpenCL callback.
This fix a build error on Windows: C2440: connot convert from 'void (__cdecl *) (...)' to 'void (__stdcall *)(...)'. Signed-off-by: Ruiling Song <ruiling.song@intel.com>
This commit is contained in:
parent
c8de4448bd
commit
e4006a474f
@ -141,9 +141,10 @@ typedef struct OpenCLFramesContext {
|
||||
} OpenCLFramesContext;
|
||||
|
||||
|
||||
static void opencl_error_callback(const char *errinfo,
|
||||
const void *private_info, size_t cb,
|
||||
void *user_data)
|
||||
static void CL_CALLBACK opencl_error_callback(const char *errinfo,
|
||||
const void *private_info,
|
||||
size_t cb,
|
||||
void *user_data)
|
||||
{
|
||||
AVHWDeviceContext *ctx = user_data;
|
||||
av_log(ctx, AV_LOG_ERROR, "OpenCL error: %s\n", errinfo);
|
||||
|
Loading…
Reference in New Issue
Block a user