Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'decoder/LAVVideo/decoders/dxva2dec.cpp')
-rw-r--r--decoder/LAVVideo/decoders/dxva2dec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder/LAVVideo/decoders/dxva2dec.cpp b/decoder/LAVVideo/decoders/dxva2dec.cpp
index 1e32d432..c7e126fd 100644
--- a/decoder/LAVVideo/decoders/dxva2dec.cpp
+++ b/decoder/LAVVideo/decoders/dxva2dec.cpp
@@ -763,8 +763,8 @@ HRESULT CDecDXVA2::SetD3DDeviceManager(IDirect3DDeviceManager9 *pDevManager)
DXVA2_VideoDesc desc;
ZeroMemory(&desc, sizeof(desc));
- desc.SampleWidth = m_pAVCtx->coded_width;
- desc.SampleHeight = m_pAVCtx->coded_height;
+ desc.SampleWidth = m_dwSurfaceWidth;
+ desc.SampleHeight = m_dwSurfaceHeight;
desc.Format = output;
DXVA2_ConfigPictureDecode config;