diff options
author | wm4 <nfxjfg@googlemail.com> | 2018-01-04 15:52:46 +0100 |
---|---|---|
committer | wm4 <nfxjfg@googlemail.com> | 2018-01-04 15:52:46 +0100 |
commit | 18fbfd7bf86effb49c0341b37b9c1d73940d688e (patch) | |
tree | 94c7f10a1998501f8fb867f193f99dbd2733923a | |
parent | 59b126f92225316e0cd77bb952d630553801dc85 (diff) | |
download | ffmpeg-18fbfd7bf86effb49c0341b37b9c1d73940d688e.tar.gz |
hwcontext_dxva2: initialize D3DDISPLAYMODEEX correctly
-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); |