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:
authorHendrik Leppkes <h.leppkes@gmail.com>2015-01-17 16:32:32 +0300
committerHendrik Leppkes <h.leppkes@gmail.com>2015-01-17 16:32:32 +0300
commitc4fceb85b199a2b33e1e188f07387348a6a5ce8d (patch)
treecdaa2487a5dee40eb92dadad577c1ec73a81cd70 /decoder
parent5dc5394ba57b73a7822aedd8f1dc20ac194c47a1 (diff)
dxva2: use surface dimensions when probing the decoder as well
Diffstat (limited to 'decoder')
-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;