hwcontext_dxva2: initialize D3DDISPLAYMODEEX correctly

(cherry picked from commit 18fbfd7bf8)
This commit is contained in:
wm4
2018-01-04 15:52:46 +01:00
committed by James Almer
parent 7c3d519df9
commit 4a53ecb12e
+1
View File
@@ -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);