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

Denis Charmet git at videolan.org
Tue Feb 5 10:47:15 CET 2013


vlc/vlc-2.0 | branch: master | Denis Charmet <typx at dinauz.org> | Fri Feb  1 01:39:29 2013 +0100| [5fae84ad72419744cfc2d5b9be5c27c9817f5570] | committer: 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: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 461fda3..fd8e7c6 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