From 08377f9c3bf6dbe216512a2e05c9fac837b13fc0 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Tue, 13 Oct 2015 23:20:33 +0200 Subject: dxva: Include last the internal header It redefines _WIN32_WINNT, possibly causing problems with the w32pthreads.h header. --- libavcodec/dxva2_hevc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libavcodec/dxva2_hevc.c') diff --git a/libavcodec/dxva2_hevc.c b/libavcodec/dxva2_hevc.c index 88d47823b8..aa684bba75 100644 --- a/libavcodec/dxva2_hevc.c +++ b/libavcodec/dxva2_hevc.c @@ -22,9 +22,13 @@ #include "libavutil/avassert.h" -#include "dxva2_internal.h" #include "hevc.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" + #define MAX_SLICES 256 struct hevc_dxva2_picture_context { -- cgit v1.2.3