Commit 5fae84ad authored by Denis Charmet's avatar Denis Charmet Committed by Jean-Baptiste Kempf

Remove the filesize verification when using FindNextElement

The dummy support patch also fix #5287.
(cherry picked from commit f000f5d9a46db78bf8e58459b65130e2a59568a1)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 426ca8cf
......@@ -164,12 +164,10 @@ EbmlElement *EbmlParser::Get( int n_call )
m_el[mi_level]->SkipData( *m_es, EBML_CONTEXT(m_el[mi_level]) );
}
vlc_stream_io_callback & io_stream = (vlc_stream_io_callback &) m_es->I_O();
uint64 i_size = io_stream.toRead();
/* Ignore unknown level 0 or 1 elements */
m_el[mi_level] = m_es->FindNextElement( EBML_CONTEXT(m_el[mi_level - 1]),
i_ulev, i_size,
i_ulev, UINT64_MAX,
( 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