mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-09 16:19:35 +00:00
hwcontext_dxva2: initialize D3DDISPLAYMODEEX correctly
This commit is contained in:
parent
59b126f922
commit
18fbfd7bf8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user