[vlc-commits] mkv: timestamp 0 is part of the first chapter for ordered editions
Steve Lhomme
git at videolan.org
Tue Mar 15 10:41:19 CET 2016
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Tue Mar 15 08:50:20 2016 +0100| [c60826707c6e0a645f391585e19f7c9040970b31] | committer: Jean-Baptiste Kempf
mkv: timestamp 0 is part of the first chapter for ordered editions
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c60826707c6e0a645f391585e19f7c9040970b31
---
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 fa4703a..87f3815 100644
--- a/modules/demux/mkv/virtual_segment.cpp
+++ b/modules/demux/mkv/virtual_segment.cpp
@@ -395,6 +395,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;
}
More information about the vlc-commits
mailing list