mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
hwcontext_dxva2: initialize D3DDISPLAYMODEEX correctly
This commit is contained in:
parent
59b126f922
commit
18fbfd7bf8
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue