Commit e8ee74f3 authored by Laurent Aimar's avatar Laurent Aimar

Add a check against broken files (It would be great if someone that understand

the mkv demuxer could double checked it)
parent 1c1ed22d
......@@ -3082,7 +3082,11 @@ void virtual_segment_c::PrepareChapters( )
p_segment = linked_segments[i];
// FIXME assume we have the same editions in all segments
for (j=0; j<p_segment->stored_editions.size(); j++)
{
if( j >= p_editions->size() ) /* Protect against broken files (?) */
break;
(*p_editions)[j]->Append( *p_segment->stored_editions[j] );
}
}
}
......
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