mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-16 11:47:04 +00:00
avutil/hwcontext_vaapi: move kernel_driver into CONFIG_LIBDRM
Reviewed-by: Zhong Li <zhong.li@intel.com> Signed-off-by: Steven Liu <lq@onvideo.cn>
This commit is contained in:
parent
092bd1e54f
commit
1498e39439
@ -1514,10 +1514,12 @@ static int vaapi_device_create(AVHWDeviceContext *ctx, const char *device,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const AVDictionaryEntry *kernel_driver;
|
|
||||||
char path[64];
|
char path[64];
|
||||||
int n, max_devices = 8;
|
int n, max_devices = 8;
|
||||||
|
#if CONFIG_LIBDRM
|
||||||
|
const AVDictionaryEntry *kernel_driver;
|
||||||
kernel_driver = av_dict_get(opts, "kernel_driver", NULL, 0);
|
kernel_driver = av_dict_get(opts, "kernel_driver", NULL, 0);
|
||||||
|
#endif
|
||||||
for (n = 0; n < max_devices; n++) {
|
for (n = 0; n < max_devices; n++) {
|
||||||
snprintf(path, sizeof(path),
|
snprintf(path, sizeof(path),
|
||||||
"/dev/dri/renderD%d", 128 + n);
|
"/dev/dri/renderD%d", 128 + n);
|
||||||
|
Loading…
Reference in New Issue
Block a user