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:
committed by
Mark Thompson
parent
c8de4448bd
commit
e4006a474f
@ -141,9 +141,10 @@ typedef struct OpenCLFramesContext {
|
|||||||
} OpenCLFramesContext;
|
} OpenCLFramesContext;
|
||||||
|
|
||||||
|
|
||||||
static void opencl_error_callback(const char *errinfo,
|
static void CL_CALLBACK opencl_error_callback(const char *errinfo,
|
||||||
const void *private_info, size_t cb,
|
const void *private_info,
|
||||||
void *user_data)
|
size_t cb,
|
||||||
|
void *user_data)
|
||||||
{
|
{
|
||||||
AVHWDeviceContext *ctx = user_data;
|
AVHWDeviceContext *ctx = user_data;
|
||||||
av_log(ctx, AV_LOG_ERROR, "OpenCL error: %s\n", errinfo);
|
av_log(ctx, AV_LOG_ERROR, "OpenCL error: %s\n", errinfo);
|
||||||
|
Reference in New Issue
Block a user