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>2013-12-21 21:04:12 +0400
committerHendrik Leppkes <h.leppkes@gmail.com>2013-12-21 21:04:12 +0400
commit90784dd5b157bf286ca845940b2ece5f86fc2555 (patch)
tree88cf2b90c6aa41631a1797d33cd5259506fd32df
parent32a02ad9cbb59b365420d6e6b7a7106309213673 (diff)
Fix handling of timestamps when playing PCM with DTS-in-PCM detection
-rw-r--r--decoder/LAVAudio/LAVAudio.cpp5
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) {