diff options
author | Luca Barbato | 2015-10-13 23:20:33 +0200 |
---|---|---|
committer | Luca Barbato | 2015-10-14 14:35:34 +0200 |
commit | 08377f9c3bf6dbe216512a2e05c9fac837b13fc0 (patch) | |
tree | 32f4bff43d2c9aa33d6a0197b3e7d1c6b95a6389 /libavcodec/dxva2_vc1.c | |
parent | c1348506697377b46f844339c178332e3314149a (diff) |
dxva: Include last the internal header
It redefines _WIN32_WINNT, possibly causing problems with the
w32pthreads.h header.
Diffstat (limited to 'libavcodec/dxva2_vc1.c')
-rw-r--r-- | libavcodec/dxva2_vc1.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/dxva2_vc1.c b/libavcodec/dxva2_vc1.c index 73f9fb4109..d170e18237 100644 --- a/libavcodec/dxva2_vc1.c +++ b/libavcodec/dxva2_vc1.c @@ -20,11 +20,15 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "dxva2_internal.h" #include "mpegutils.h" #include "vc1.h" #include "vc1data.h" +// The headers above may include w32threads.h, which uses the original +// _WIN32_WINNT define, while dxva2_internal.h redefines it to target a +// potentially newer version. +#include "dxva2_internal.h" + struct dxva2_picture_context { DXVA_PictureParameters pp; DXVA_SliceInfo si; |