Commit e6ac328b authored by Jun Zhao's avatar Jun Zhao Committed by Jun Zhao

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: 's avatarJun Zhao <mypopydev@gmail.com>
parent 2730a0fd
...@@ -1361,10 +1361,7 @@ static int opencl_device_derive(AVHWDeviceContext *hwdev, ...@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment