Commit 1498e394 authored by Steven Liu's avatar Steven Liu

avutil/hwcontext_vaapi: move kernel_driver into CONFIG_LIBDRM

Reviewed-by: 's avatarZhong Li <zhong.li@intel.com>
Signed-off-by: 's avatarSteven Liu <lq@onvideo.cn>
parent 092bd1e5
......@@ -1514,10 +1514,12 @@ static int vaapi_device_create(AVHWDeviceContext *ctx, const char *device,
break;
}
} else {
const AVDictionaryEntry *kernel_driver;
char path[64];
int n, max_devices = 8;
#if CONFIG_LIBDRM
const AVDictionaryEntry *kernel_driver;
kernel_driver = av_dict_get(opts, "kernel_driver", NULL, 0);
#endif
for (n = 0; n < max_devices; n++) {
snprintf(path, sizeof(path),
"/dev/dri/renderD%d", 128 + n);
......
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