瀏覽代碼

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>
Jun Zhao 7 年之前
父節點
當前提交
e6ac328b79
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      libavutil/hwcontext_opencl.c

+ 1 - 4
libavutil/hwcontext_opencl.c

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