diff options
author | Steven Liu <lq@chinaffmpeg.org> | 2019-07-11 04:34:57 +0300 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2019-07-11 04:34:57 +0300 |
commit | 1498e39439202b7b28f516771a59bca90be7150f (patch) | |
tree | 6c3cffc49a318699955fcd291aa34993d11764c9 /libavutil | |
parent | 092bd1e54fefb72f1bc84eb7ab945113480ba67c (diff) |
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>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/hwcontext_vaapi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c index 4227c3c090..cf117640f2 100644 --- a/libavutil/hwcontext_vaapi.c +++ b/libavutil/hwcontext_vaapi.c @@ -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); |