Skip to content

Commit

Permalink
demux: mkv: fail the segment comparison if a segment UID is NULL
Browse files Browse the repository at this point in the history
(cherry picked from commit 512bf5750edb3aa8294d71080ce3e39583444835)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
  • Loading branch information
robUx4 authored and jbkempf committed May 29, 2018
1 parent d2dadb3 commit c472668
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/demux/mkv/matroska_segment.cpp
Expand Up @@ -545,6 +545,8 @@ bool matroska_segment_c::CompareSegmentUIDs( const matroska_segment_c * p_item_a
return false;

p_tmp = static_cast<EbmlBinary *>( p_item_a->p_segment_uid );
if ( !p_tmp )
return false;
if ( p_item_b->p_prev_segment_uid != NULL
&& *p_tmp == *p_item_b->p_prev_segment_uid )
return true;
Expand Down

0 comments on commit c472668

Please sign in to comment.