diff options
author | Mark Thompson <sw@jkqxz.net> | 2016-07-28 23:28:30 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2016-11-13 20:39:49 +0000 |
commit | 8d47d8407569aade0c0d564600919349789dc38b (patch) | |
tree | 891595b71ae044a7369f2d9f1dfe97d38673556d /libswresample/resample.c | |
parent | 1a359e53418ff15b1c9b1e03c05b160f01e1ce0f (diff) | |
download | ffmpeg-8d47d8407569aade0c0d564600919349789dc38b.tar.gz |
hwcontext_vaapi: Try the first render node as the default DRM device
If no string argument is supplied when av_hwdevice_ctx_create() is
called to create a VAAPI device, we currently only try the default
X11 display (that is, $DISPLAY) to find a device, and will therefore
fail in the absence of an X server to connect to. Change the logic
to also look for a device via the first DRM render node (that is,
"/dev/dri/renderD128"), which is probably the right thing to use in
most simple configurations which only have one DRM device.
(cherry picked from commit 121f34d5f0c8d7d376829a467590fbbe4c228f4f)
Diffstat (limited to 'libswresample/resample.c')
0 files changed, 0 insertions, 0 deletions