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/VideoDecOutputPin.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/VideoDecOutputPin.cpp')
-rw-r--r-- | src/filters/transform/mpcvideodec/VideoDecOutputPin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filters/transform/mpcvideodec/VideoDecOutputPin.cpp b/src/filters/transform/mpcvideodec/VideoDecOutputPin.cpp index 7fcf1004e..3cdcbf622 100644 --- a/src/filters/transform/mpcvideodec/VideoDecOutputPin.cpp +++ b/src/filters/transform/mpcvideodec/VideoDecOutputPin.cpp @@ -116,8 +116,8 @@ STDMETHODIMP CVideoDecOutputPin::GetCreateVideoAcceleratorData(const GUID *pGuid if (pAMVideoAccelerator)
{
memcpy (&UncompInfo.ddUncompPixelFormat, &m_ddUncompPixelFormat, sizeof (DDPIXELFORMAT));
+ UncompInfo.dwUncompWidth = m_pVideoDecFilter->PictWidthRounded();
UncompInfo.dwUncompHeight = m_pVideoDecFilter->PictHeightRounded();
- UncompInfo.dwUncompWidth = m_pVideoDecFilter->PictWidth();
hr = pAMVideoAccelerator->GetCompBufferInfo(&m_GuidDecoderDXVA1, &UncompInfo, &dwNumTypesCompBuffers, CompInfo);
if (SUCCEEDED (hr))
|