[vlc-devel] [PATCH 5/7] demux:mkv: when finished reading position the reader at the end of the data we read

Steve Lhomme robux4 at videolabs.io
Mon Nov 13 18:08:44 CET 2017


---
 modules/demux/mkv/Ebml_parser.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/demux/mkv/Ebml_parser.cpp b/modules/demux/mkv/Ebml_parser.cpp
index e22e68c5e6..330edd4c7c 100644
--- a/modules/demux/mkv/Ebml_parser.cpp
+++ b/modules/demux/mkv/Ebml_parser.cpp
@@ -202,6 +202,9 @@ EbmlElement *EbmlParser::Get( int n_call )
     else if( m_el[mi_level] == NULL )
     {
         msg_Dbg( p_demux,"MKV/Ebml Parser: m_el[mi_level] == NULL" );
+        /* go back to the end of the parent */
+        if( p_prev )
+            p_prev->SkipData( *m_es, EBML_CONTEXT(p_prev) );
     }
     else if( m_el[mi_level]->IsDummy() && !mb_dummy )
     {
-- 
2.14.2



More information about the vlc-devel mailing list