libavutil & opencl: remove opencl default device type
authorLenny Wang <lenny@multicorewareinc.com>
Sat, 30 Nov 2013 07:27:57 +0000 (01:27 -0600)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 2 Dec 2013 11:07:27 +0000 (12:07 +0100)
CL_DEVICE_TYPE_DEFAULT makes duplicated device entries for each
platform using av_opencl_get_device_list()

Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Reviewed-by: highgod0401 <highgod0401@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/opencl.c

index ae4c476..8654c25 100644 (file)
@@ -98,7 +98,7 @@ static const AVClass openclutils_class = {
 
 static OpenclContext opencl_ctx = {&openclutils_class};
 
-static const cl_device_type device_type[] = {CL_DEVICE_TYPE_GPU, CL_DEVICE_TYPE_CPU, CL_DEVICE_TYPE_DEFAULT};
+static const cl_device_type device_type[] = {CL_DEVICE_TYPE_GPU, CL_DEVICE_TYPE_CPU};
 
 typedef struct {
     int err_code;