[vlc-commits] demux:mkv: when finished reading position the reader at the end of the data we read

Steve Lhomme git at videolan.org
Tue Nov 14 10:55:05 CET 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Mon Nov 13 18:08:44 2017 +0100| [9b3e23e928130cc71d38b436520645a5d94ee899] | committer: Jean-Baptiste Kempf

demux:mkv: when finished reading position the reader at the end of the data we read

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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



More information about the vlc-commits mailing list