Skip to content
Snippets Groups Projects
Commit e6ac328b authored by Jun Zhao's avatar Jun Zhao Committed by Jun Zhao
Browse files

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: default avatarJun Zhao <mypopydev@gmail.com>
parent 2730a0fd
No related branches found
No related tags found
No related merge requests found
...@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment