Commit 0196637f authored by Steve Lhomme's avatar Steve Lhomme

mkv.cpp: don't use the default edition if there is none

parent 531c40d5
...@@ -4536,7 +4536,7 @@ void matroska_segment_c::ParseChapters( KaxChapters *chapters ) ...@@ -4536,7 +4536,7 @@ void matroska_segment_c::ParseChapters( KaxChapters *chapters )
stored_editions[i]->RefreshChapters( ); 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 */ /* update the duration of the segment according to the sum of all sub chapters */
i_dur = stored_editions[i_default_edition]->Duration() / I64C(1000); i_dur = stored_editions[i_default_edition]->Duration() / I64C(1000);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment