Commit 988d3773 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

MKV: avoid recursive parsing of the same Seek head

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5d0a4cf2
...@@ -776,8 +776,11 @@ bool matroska_segment_c::LoadSeekHeadItem( const EbmlCallbacks & ClassInfos, int ...@@ -776,8 +776,11 @@ bool matroska_segment_c::LoadSeekHeadItem( const EbmlCallbacks & ClassInfos, int
msg_Dbg( &sys.demuxer, "| + Seek head" ); msg_Dbg( &sys.demuxer, "| + Seek head" );
if( i_seekhead_count < 10 ) if( i_seekhead_count < 10 )
{ {
i_seekhead_position = i_element_position; if ( i_seekhead_position != i_element_position )
ParseSeekHead( static_cast<KaxSeekHead*>( el ) ); {
i_seekhead_position = i_element_position;
ParseSeekHead( static_cast<KaxSeekHead*>( el ) );
}
} }
} }
else if( MKV_IS_ID( el, KaxInfo ) ) // FIXME else if( MKV_IS_ID( el, KaxInfo ) ) // FIXME
......
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