1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-27 19:01:07 +00:00

vaapi: avoid forward declaration of variable

Why is everything so horrible.
This commit is contained in:
wm4 2016-05-15 18:37:51 +02:00
parent 6ae7a555bf
commit 32c10956e0

View File

@ -72,15 +72,6 @@ struct va_native_display {
void (*destroy)(struct priv *p); void (*destroy)(struct priv *p);
}; };
static const struct va_native_display disp_x11;
static const struct va_native_display *const native_displays[] = {
#if HAVE_VAAPI_X11
&disp_x11,
#endif
NULL
};
#if HAVE_VAAPI_X11 #if HAVE_VAAPI_X11
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <va/va_x11.h> #include <va/va_x11.h>
@ -108,6 +99,13 @@ static const struct va_native_display disp_x11 = {
}; };
#endif #endif
static const struct va_native_display *const native_displays[] = {
#if HAVE_VAAPI_X11
&disp_x11,
#endif
NULL
};
#define HAS_HEVC VA_CHECK_VERSION(0, 38, 0) #define HAS_HEVC VA_CHECK_VERSION(0, 38, 0)
#define HAS_VP9 (VA_CHECK_VERSION(0, 38, 1) && defined(FF_PROFILE_VP9_0)) #define HAS_VP9 (VA_CHECK_VERSION(0, 38, 1) && defined(FF_PROFILE_VP9_0))