[vlc-devel] [PATCH] Remove the filesize verification when using FindNextElement

Denis Charmet typx at dinauz.org
Fri Feb 1 01:44:04 CET 2013


The dummy support patch also fix #5287.
---
 modules/demux/mkv/Ebml_parser.cpp |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/demux/mkv/Ebml_parser.cpp b/modules/demux/mkv/Ebml_parser.cpp
index 43038b3..6bb1c5b 100644
--- a/modules/demux/mkv/Ebml_parser.cpp
+++ b/modules/demux/mkv/Ebml_parser.cpp
@@ -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 )
     {
-- 
1.7.10.4




More information about the vlc-devel mailing list