1
0
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:
Ruiling Song 2018-06-06 23:31:44 +08:00 committed by Mark Thompson
parent c8de4448bd
commit e4006a474f

View File

@ -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);