]> git.sesse.net Git - ffmpeg/blobdiff - cmdutils_opencl.c
Merge commit 'a0562e531723923b632684c7b51a9dd584bf534f'
[ffmpeg] / cmdutils_opencl.c
index 61478e27af9df7f5a8b76280bc47f5175144359e..d9095b61be27f7620cbf304c554e33a3e306ebde 100644 (file)
@@ -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)