Commit f000f5d9 authored by Denis Charmet's avatar Denis Charmet

Remove the filesize verification when using FindNextElement

The dummy support patch also fix #5287.
parent c69ad41a
...@@ -164,12 +164,10 @@ EbmlElement *EbmlParser::Get( int n_call ) ...@@ -164,12 +164,10 @@ EbmlElement *EbmlParser::Get( int n_call )
m_el[mi_level]->SkipData( *m_es, EBML_CONTEXT(m_el[mi_level]) ); 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 */ /* Ignore unknown level 0 or 1 elements */
m_el[mi_level] = m_es->FindNextElement( EBML_CONTEXT(m_el[mi_level - 1]), 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 ); ( mb_dummy | (mi_level > 1) ), 1 );
if( i_ulev > 0 ) 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