X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=cmdutils_opencl.c;h=d9095b61be27f7620cbf304c554e33a3e306ebde;hb=859c4ae402ac297fa1ba547a267ba8337e26d123;hp=61478e27af9df7f5a8b76280bc47f5175144359e;hpb=9ccd90626f0ecef205faef1d25f0e3649d18e1b3;p=ffmpeg diff --git a/cmdutils_opencl.c b/cmdutils_opencl.c index 61478e27af9..d9095b61be2 100644 --- a/cmdutils_opencl.c +++ b/cmdutils_opencl.c @@ -206,7 +206,7 @@ end: static int compare_ocl_device_desc(const void *a, const void *b) { - return ((OpenCLDeviceBenchmark*)a)->runtime - ((OpenCLDeviceBenchmark*)b)->runtime; + return ((const OpenCLDeviceBenchmark*)a)->runtime - ((const OpenCLDeviceBenchmark*)b)->runtime; } int opt_opencl_bench(void *optctx, const char *opt, const char *arg)