Do not skip non finite size element in matroska.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 28 Jun 2009 21:05:34 +0000 (23:05 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 28 Jun 2009 21:07:54 +0000 (23:07 +0200)
It seems to create an infinite loop.

modules/demux/mkv/demux.cpp

index 2199b11..aa15ea7 100644 (file)
@@ -160,7 +160,9 @@ matroska_stream_c *demux_sys_t::AnalyseAllSegmentsFound( demux_t *p_demux, EbmlS
             p_l0 = p_estream->FindNextID(KaxSegment::ClassInfos, 0xFFFFFFFFL);
         }
         else
-            p_l0 = p_l0->SkipData(*p_estream, KaxSegment_Context);
+        {
+            p_l0 = NULL;
+        }
     }
 
     if ( !b_keep_stream )