]> git.sesse.net Git - ffmpeg/commit
hwcontext_drm: make dependency on Linux kernel headers optional
authorLynne <dev@lynne.ee>
Wed, 30 Dec 2020 21:19:16 +0000 (22:19 +0100)
committerLynne <dev@lynne.ee>
Wed, 30 Dec 2020 22:14:46 +0000 (23:14 +0100)
commit53c56585a6bebfd1dd73f73ace5d719120822b0a
treeae93f8cbb3e6bf35c2dfaf008e0b93ba935e7276
parent2f20e35892c866d4e141e73a3e2df16457f9a21a
hwcontext_drm: make dependency on Linux kernel headers optional

This was introduced in version 4.6. And may not exist all without an
optional package. So to prevent a hard dependency on needing the Linux
kernel headers to compile, make this optional.

Also ignore the status of the ioctl, since it may fail on older kernels
which don't support it. It's okay to ignore as its not fatal and any
serious errors will be caught later by the mmap call.
configure
libavutil/hwcontext_drm.c