Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksoid1978 <aleksoid@users.sourceforge.dot.net>2013-05-15 18:28:36 +0400
committerv0lt <v0lt@rambler.ru>2013-05-15 18:28:36 +0400
commitb6822bee1da100bf87ac92a4b3672859c3c6cf16 (patch)
treecc4bd417a479f4e5630a3ed968c6b9241505fb2c /src
parenta7e2fea25e36119075d65e0c8a1cc3bcb457546a (diff)
MatroskaSplitter: actual duration for incomplete files.
Diffstat (limited to 'src')
-rw-r--r--src/filters/parser/MatroskaSplitter/MatroskaSplitter.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/filters/parser/MatroskaSplitter/MatroskaSplitter.cpp b/src/filters/parser/MatroskaSplitter/MatroskaSplitter.cpp
index a08af6337..05ff405eb 100644
--- a/src/filters/parser/MatroskaSplitter/MatroskaSplitter.cpp
+++ b/src/filters/parser/MatroskaSplitter/MatroskaSplitter.cpp
@@ -1135,6 +1135,12 @@ bool CMatroskaSplitterFilter::DemuxInit()
}
m_fAbort = false;
+
+ if (m_pFile->m_segment.Cues.GetCount()) {
+ Info& info = m_pFile->m_segment.SegmentInfo;
+ m_rtDuration = (REFERENCE_TIME)(info.Duration * info.TimeCodeScale / 100);
+ m_rtNewStop = m_rtStop = m_rtDuration;
+ }
}
m_pCluster.Free();