Fix VAAPIRenderer build error with HAVE_DRM but not HAVE_EGL

This commit is contained in:
Cameron Gutman 2022-04-04 19:40:31 -05:00
parent 09ed82db65
commit 8c93b2d54c

View file

@ -26,7 +26,7 @@ extern "C" {
#include <va/va_drm.h> #include <va/va_drm.h>
#endif #endif
#include <libavutil/hwcontext_vaapi.h> #include <libavutil/hwcontext_vaapi.h>
#ifdef HAVE_EGL #if defined(HAVE_EGL) || defined(HAVE_DRM)
#include <va/va_drmcommon.h> #include <va/va_drmcommon.h>
#endif #endif
} }