diff options
author | Casimir666 <casimir666@users.sourceforge.net> | 2009-11-04 22:57:27 +0300 |
---|---|---|
committer | Casimir666 <casimir666@users.sourceforge.net> | 2009-11-04 22:57:27 +0300 |
commit | 9b3c14015fc0f3a6d620ed2b558fbad200af97c0 (patch) | |
tree | 9dbe393ecc4b8dd125677c700562d48a22499254 /src/filters/transform/mpcvideodec/DXVADecoderH264.cpp | |
parent | 126874316754d8cf047ee004e7cacc5b4dcaa116 (diff) |
Fixed : better detection of "Used For Reference Flags" (fix some broken DXVA samples)
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1330 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/transform/mpcvideodec/DXVADecoderH264.cpp')
-rw-r--r-- | src/filters/transform/mpcvideodec/DXVADecoderH264.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filters/transform/mpcvideodec/DXVADecoderH264.cpp b/src/filters/transform/mpcvideodec/DXVADecoderH264.cpp index fb43acc1a..29a244d5d 100644 --- a/src/filters/transform/mpcvideodec/DXVADecoderH264.cpp +++ b/src/filters/transform/mpcvideodec/DXVADecoderH264.cpp @@ -383,11 +383,11 @@ int CDXVADecoderH264::FindOldestFrame() if (m_rtOutStart == _I64_MIN)
{
// If start time not set (no PTS for example), guess presentation time!
- m_rtOutStart = m_rtLastFrameDisplayed + m_pFilter->GetAvrTimePerFrame();
+ m_rtOutStart = m_rtLastFrameDisplayed;
}
m_pPictureStore[nPos].rtStart = m_rtOutStart;
m_pPictureStore[nPos].rtStop = m_rtOutStart + m_pFilter->GetAvrTimePerFrame();
- m_rtLastFrameDisplayed = m_rtOutStart;
+ m_rtLastFrameDisplayed = m_rtOutStart + m_pFilter->GetAvrTimePerFrame();
m_pFilter->ReorderBFrames (m_pPictureStore[nPos].rtStart, m_pPictureStore[nPos].rtStop);
}
|