git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
928c0e0
)
codec: dxva: Pretend we're always building on desktop
author
Hugo Beauzée-Luyssen
<hugo@beauzee.fr>
Fri, 2 Jun 2017 15:29:31 +0000
(17:29 +0200)
committer
Hugo 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
patch
|
blob
|
history
diff --git
a/modules/codec/avcodec/directx_va.c
b/modules/codec/avcodec/directx_va.c
index
d114fea
..
63307a6
100644
(file)
--- a/
modules/codec/avcodec/directx_va.c
+++ b/
modules/codec/avcodec/directx_va.c
@@
-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 };
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>
#include <d3d9.h>
#include <dxva2api.h>