codec: dxva: Pretend we're always building on desktop
authorHugo Beauzée-Luyssen <hugo@beauzee.fr>
Fri, 2 Jun 2017 15:29:31 +0000 (17:29 +0200)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Fri, 2 Jun 2017 15:56:28 +0000 (17:56 +0200)
So that we can have the GUID declared

modules/codec/avcodec/directx_va.c

index d114fea..63307a6 100644 (file)
@@ -52,6 +52,12 @@ static const int PROF_HEVC_MAIN[]    = { FF_PROFILE_HEVC_MAIN, 0 };
 static const int PROF_HEVC_MAIN10[]  = { FF_PROFILE_HEVC_MAIN,
                                          FF_PROFILE_HEVC_MAIN_10, 0 };
 
+#include <winapifamily.h>
+#if defined(WINAPI_FAMILY)
+# undef WINAPI_FAMILY
+#endif
+#define WINAPI_FAMILY WINAPI_PARTITION_DESKTOP
+
 #include <d3d9.h>
 #include <dxva2api.h>