[vlc-commits] mkv: Segments with chapters but no clusters are ok

Steve Lhomme git at videolan.org
Tue Mar 15 10:41:19 CET 2016


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Tue Mar 15 08:50:21 2016 +0100| [5b363d605104a44defa5729ad1c1c62c9a09b049] | committer: Jean-Baptiste Kempf

mkv: Segments with chapters but no clusters are ok

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

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

 modules/demux/mkv/mkv.cpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/mkv/mkv.cpp b/modules/demux/mkv/mkv.cpp
index 33a19cd..de9bcef 100644
--- a/modules/demux/mkv/mkv.cpp
+++ b/modules/demux/mkv/mkv.cpp
@@ -141,9 +141,9 @@ static int Open( vlc_object_t * p_this )
     }
 
     p_segment = p_stream->segments[0];
-    if( p_segment->cluster == NULL )
+    if( p_segment->cluster == NULL && p_segment->stored_editions.size() == 0 )
     {
-        msg_Err( p_demux, "cannot find any cluster, damaged file ?" );
+        msg_Err( p_demux, "cannot find any cluster or chapter, damaged file ?" );
         goto error;
     }
 



More information about the vlc-commits mailing list