diff options
author | wm4 <nfxjfg@googlemail.com> | 2018-01-04 17:52:46 +0300 |
---|---|---|
committer | wm4 <nfxjfg@googlemail.com> | 2018-01-04 17:52:46 +0300 |
commit | 18fbfd7bf86effb49c0341b37b9c1d73940d688e (patch) | |
tree | 94c7f10a1998501f8fb867f193f99dbd2733923a /libavutil | |
parent | 59b126f92225316e0cd77bb952d630553801dc85 (diff) |
hwcontext_dxva2: initialize D3DDISPLAYMODEEX correctly
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/hwcontext_dxva2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/hwcontext_dxva2.c b/libavutil/hwcontext_dxva2.c index 44ebdbca95..665c2d6d74 100644 --- a/libavutil/hwcontext_dxva2.c +++ b/libavutil/hwcontext_dxva2.c @@ -485,6 +485,7 @@ static int dxva2_device_create9ex(AVHWDeviceContext *ctx, UINT adapter) if (FAILED(hr)) return AVERROR_UNKNOWN; + modeex.Size = sizeof(D3DDISPLAYMODEEX); hr = IDirect3D9Ex_GetAdapterDisplayModeEx(d3d9ex, adapter, &modeex, NULL); if (FAILED(hr)) { IDirect3D9Ex_Release(d3d9ex); |