[vlc-commits] Remove the filesize verification when using FindNextElement

Denis Charmet git at videolan.org
Sat Feb 2 11:50:57 CET 2013


vlc | branch: master | Denis Charmet <typx at dinauz.org> | Fri Feb  1 01:39:29 2013 +0100| [f000f5d9a46db78bf8e58459b65130e2a59568a1] | committer: Denis Charmet

Remove the filesize verification when using FindNextElement

The dummy support patch also fix #5287.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f000f5d9a46db78bf8e58459b65130e2a59568a1
---

 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 )
     {



More information about the vlc-commits mailing list