summaryrefslogtreecommitdiff
path: root/media-video/vlc/files/vlc-scm-libva-1.2.1-compat.patch
diff options
context:
space:
mode:
Diffstat (limited to 'media-video/vlc/files/vlc-scm-libva-1.2.1-compat.patch')
-rw-r--r--media-video/vlc/files/vlc-scm-libva-1.2.1-compat.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/media-video/vlc/files/vlc-scm-libva-1.2.1-compat.patch b/media-video/vlc/files/vlc-scm-libva-1.2.1-compat.patch
new file mode 100644
index 0000000..adfdefe
--- /dev/null
+++ b/media-video/vlc/files/vlc-scm-libva-1.2.1-compat.patch
@@ -0,0 +1,12 @@
+--- a/modules/codec/avcodec/vaapi.c
++++ b/modules/codec/avcodec/vaapi.c
+@@ -34,6 +34,9 @@
+ #ifdef VLC_VA_BACKEND_XLIB
+ # include <vlc_xlib.h>
+ # include <va/va_x11.h>
++#if VA_MINOR_VERSION >= 34
++# include <va/va_compat.h>
++#endif
+ #endif
+ #ifdef VLC_VA_BACKEND_DRM
+ # include <sys/types.h>