[FFmpeg-devel] [PATCH]libavutil & opencl: remove opencl default device type

Michael Niedermayer michaelni at gmx.at
Mon Dec 2 12:19:00 CET 2013


On Mon, Dec 02, 2013 at 08:56:00AM +0800, highgod0401 wrote:
> 
> 
> 
> 
> 
> highgod0401
> 
> From: Lenny Wang
> Date: 2013-11-30 15:27
> To: FFmpeg development discussions and patches
> Subject: [FFmpeg-devel] [PATCH]libavutil & opencl: remove opencl default device type
> CL_DEVICE_TYPE_DEFAULT makes duplicated device entries for each
> platform using av_opencl_get_device_list()
> 
> ---
>  libavutil/opencl.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavutil/opencl.c b/libavutil/opencl.c
> index ae4c476..8654c25 100644
> --- a/libavutil/opencl.c
> +++ b/libavutil/opencl.c
> @@ -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;
> 
> Looks good to me, thanks

applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

You can kill me, but you cannot change the truth.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131202/5cf07a71/attachment.asc>


More information about the ffmpeg-devel mailing list