]> git.sesse.net Git - vlc/commitdiff
fix segfault
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Sat, 3 Mar 2007 23:22:51 +0000 (23:22 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Sat, 3 Mar 2007 23:22:51 +0000 (23:22 +0000)
modules/demux/mkv.cpp

index 3e556cfb9b25fa11e50f81ce79a125124afe3303..d9c479171742e593cac920461d369e68ddff90b9 100644 (file)
@@ -5359,6 +5359,9 @@ bool matroska_segment_c::CompareSegmentUIDs( const matroska_segment_c * p_item_a
         return true;
 
     p_tmp = (EbmlBinary *)p_item_a->p_next_segment_uid;
+    if ( !p_tmp )
+        return false;
+    
     if ( p_item_b->p_segment_uid != NULL
           && *p_tmp == *p_item_b->p_segment_uid )
         return true;