Commit 790032d1 authored by Steve Lhomme's avatar Steve Lhomme

mkv.cpp: fix a potential problem when the same dir contains files with no Segment UID

parent f60b4c79
......@@ -5223,7 +5223,7 @@ size_t virtual_segment_c::AddSegment( matroska_segment_c *p_segment )
// check if it's not already in here
for ( i=0; i<linked_segments.size(); i++ )
{
if ( *p_segment->p_segment_uid == *linked_segments[i]->p_segment_uid )
if ( linked_segments[i]->p_segment_uid != NULL && *p_segment->p_segment_uid == *linked_segments[i]->p_segment_uid )
return 0;
}
......
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