X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavutil%2Fhwcontext_d3d11va.c;h=41330f0ae68551df4d41101468bed3f7fb99555e;hb=d06aae732c16bd4c490c6dfa35cc2a35129c640f;hp=d39fdd3fc85a913d9fc4962639588a5681c94da7;hpb=44000b7744a0a3c425bc6d8d924b4efa866aad39;p=ffmpeg diff --git a/libavutil/hwcontext_d3d11va.c b/libavutil/hwcontext_d3d11va.c index d39fdd3fc85..41330f0ae68 100644 --- a/libavutil/hwcontext_d3d11va.c +++ b/libavutil/hwcontext_d3d11va.c @@ -20,14 +20,6 @@ #include -// Include thread.h before redefining _WIN32_WINNT, to get -// the right implementation for AVOnce -#include "thread.h" - -#if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x0600 -#undef _WIN32_WINNT -#define _WIN32_WINNT 0x0600 -#endif #define COBJMACROS #include @@ -46,6 +38,7 @@ #include "imgutils.h" #include "pixdesc.h" #include "pixfmt.h" +#include "thread.h" typedef HRESULT(WINAPI *PFN_CREATE_DXGI_FACTORY)(REFIID riid, void **ppFactory); @@ -557,7 +550,7 @@ static int d3d11va_device_create(AVHWDeviceContext *ctx, const char *device, } if (pAdapter) { - DXGI_ADAPTER_DESC2 desc; + DXGI_ADAPTER_DESC desc; hr = IDXGIAdapter2_GetDesc(pAdapter, &desc); if (!FAILED(hr)) { av_log(ctx, AV_LOG_INFO, "Using device %04x:%04x (%ls).\n",