diff options
author | Casimir666 <casimir666@users.sourceforge.net> | 2008-06-07 14:14:27 +0400 |
---|---|---|
committer | Casimir666 <casimir666@users.sourceforge.net> | 2008-06-07 14:14:27 +0400 |
commit | 9f8c1ce08a2ba5d7cce81051164c2c9ec213e20e (patch) | |
tree | 510a05f4805d7055acbb056ec02aed5ee605cb29 /src/filters/transform/mpcvideodec/DXVADecoder.cpp | |
parent | 623c8f2ab65327e2c43dabcfc373a6150a15704c (diff) |
FIXED : DXVA black screen with picture width not multiple of 16
FIXED : DXVA crash on streams starting with trailing bit
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@554 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/transform/mpcvideodec/DXVADecoder.cpp')
-rw-r--r-- | src/filters/transform/mpcvideodec/DXVADecoder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filters/transform/mpcvideodec/DXVADecoder.cpp b/src/filters/transform/mpcvideodec/DXVADecoder.cpp index 5704eda15..661c5de08 100644 --- a/src/filters/transform/mpcvideodec/DXVADecoder.cpp +++ b/src/filters/transform/mpcvideodec/DXVADecoder.cpp @@ -148,7 +148,7 @@ HRESULT CDXVADecoder::ConfigureDXVA1() AMVAUncompDataInfo DataInfo;
DWORD dwNum = COMP_BUFFER_COUNT;
- DataInfo.dwUncompWidth = m_pFilter->PictWidth();
+ DataInfo.dwUncompWidth = m_pFilter->PictWidthRounded();
DataInfo.dwUncompHeight = m_pFilter->PictHeightRounded();
memcpy (&DataInfo.ddUncompPixelFormat, m_pFilter->GetPixelFormat(), sizeof (DDPIXELFORMAT));
hr = m_pAMVideoAccelerator->GetCompBufferInfo (m_pFilter->GetDXVADecoderGuid(), &DataInfo, &dwNum, m_ComBufferInfo);
|