1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

hwcontext_opencl: Remove the opencl_device_init in opencl_device_derive

In opencl device derived case, don't need to call opencl_device_init.

Signed-off-by: Jun Zhao <mypopydev@gmail.com>
This commit is contained in:
Jun Zhao 2018-06-20 11:13:59 +08:00 committed by Jun Zhao
parent 2730a0fdf4
commit e6ac328b79

View File

@ -1361,10 +1361,7 @@ static int opencl_device_derive(AVHWDeviceContext *hwdev,
break; break;
} }
if (err < 0) return err;
return err;
return opencl_device_init(hwdev);
} }
static int opencl_get_plane_format(enum AVPixelFormat pixfmt, static int opencl_get_plane_format(enum AVPixelFormat pixfmt,