[vlc-devel] [PATCH 2/7] demux:mkv: timestamp 0 is part of the first chapter for ordered editions
Steve Lhomme
robux4 at videolabs.io
Tue Mar 15 08:50:20 CET 2016
---
modules/demux/mkv/virtual_segment.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/modules/demux/mkv/virtual_segment.cpp b/modules/demux/mkv/virtual_segment.cpp
index e6973d3..27e1be4 100644
--- a/modules/demux/mkv/virtual_segment.cpp
+++ b/modules/demux/mkv/virtual_segment.cpp
@@ -400,6 +400,12 @@ virtual_chapter_c* virtual_edition_c::getChapterbyTimecode( int64_t time )
return chapters[i]->getSubChapterbyTimecode( time );
}
+ /* special case for the beggining of the first ordered chapter */
+ if ( time == 0 && b_ordered && chapters.size() )
+ {
+ return chapters[0]->getSubChapterbyTimecode( time );
+ }
+
return NULL;
}
--
2.7.2.windows.1
More information about the vlc-devel
mailing list