Commit e4006a47 authored by Ruiling Song's avatar Ruiling Song Committed by Mark Thompson

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: 's avatarRuiling Song <ruiling.song@intel.com>
parent c8de4448
...@@ -141,9 +141,10 @@ typedef struct OpenCLFramesContext { ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment