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

demux:mkv: do not even try to read bogus data if the size is 0

The parser will go up one level by itself
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 72d3b200
......@@ -187,7 +187,8 @@ EbmlElement *EbmlParser::Get( int n_call )
: EBML_CONTEXT(m_el[mi_level - 1]);
/* Ignore unknown level 0 or 1 elements */
m_el[mi_level] = m_es->FindNextElement( e_context,
m_el[mi_level] = unlikely(!i_max_read) ? NULL :
m_es->FindNextElement( e_context,
i_ulev, i_max_read,
( mb_dummy | (mi_level > 1) ), 1 );
if( i_ulev > 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