diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-12-21 21:04:12 +0400 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-12-21 21:04:12 +0400 |
commit | 90784dd5b157bf286ca845940b2ece5f86fc2555 (patch) | |
tree | 88cf2b90c6aa41631a1797d33cd5259506fd32df | |
parent | 32a02ad9cbb59b365420d6e6b7a7106309213673 (diff) |
Fix handling of timestamps when playing PCM with DTS-in-PCM detection
-rw-r--r-- | decoder/LAVAudio/LAVAudio.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/decoder/LAVAudio/LAVAudio.cpp b/decoder/LAVAudio/LAVAudio.cpp index 8e2ef42c..6dd5d203 100644 --- a/decoder/LAVAudio/LAVAudio.cpp +++ b/decoder/LAVAudio/LAVAudio.cpp @@ -1666,8 +1666,13 @@ HRESULT CLAVAudio::ProcessBuffer(BOOL bEOF) } if (m_bFindDTSInPCM) { + if (m_rtStartInputCache == AV_NOPTS_VALUE) + m_rtStartInputCache = m_rtStartInput; return S_FALSE; } + + m_rtStartInput = m_rtStartInputCache; + m_rtStartInputCache = AV_NOPTS_VALUE; } if (m_pInput->CurrentMediaType().subtype == MEDIASUBTYPE_DOLBY_AC3_SPDIF) { |