]> git.sesse.net Git - vlc/commitdiff
mkv.cpp: don't use the default edition if there is none
authorSteve Lhomme <robux@videolan.org>
Thu, 19 May 2005 16:35:59 +0000 (16:35 +0000)
committerSteve Lhomme <robux@videolan.org>
Thu, 19 May 2005 16:35:59 +0000 (16:35 +0000)
modules/demux/mkv.cpp

index d47e9b68b00a0682f76679d6a79c73b3cf5edc5d..ac7129b7979397770832810b70efd627f2132b5d 100644 (file)
@@ -4536,7 +4536,7 @@ void matroska_segment_c::ParseChapters( KaxChapters *chapters )
         stored_editions[i]->RefreshChapters( );
     }
     
-    if ( stored_editions[i_default_edition]->b_ordered )
+    if ( stored_editions.size() != 0 && stored_editions[i_default_edition]->b_ordered )
     {
         /* update the duration of the segment according to the sum of all sub chapters */
         i_dur = stored_editions[i_default_edition]->Duration() / I64C(1000);