Commit 934582e4 authored by Denis Charmet's avatar Denis Charmet Committed by Jean-Baptiste Kempf

Avoid a crash if there are duplicated files in dir

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 273beab3
......@@ -528,10 +528,10 @@ matroska_stream_c *demux_sys_t::AnalyseAllSegmentsFound( demux_t *p_demux, EbmlS
{
KaxSegmentUID *p_uid = static_cast<KaxSegmentUID*>(l);
b_keep_segment = (FindSegment( *p_uid ) == NULL);
if ( !b_keep_segment )
break; // this segment is already known
delete p_segment1->p_segment_uid;
p_segment1->p_segment_uid = new KaxSegmentUID(*p_uid);
if ( !b_keep_segment )
break; // this segment is already known
}
else if( MKV_IS_ID( l, KaxPrevUID ) )
{
......
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