matroskadec: bail on parsing of incorrect seek index segments
authorDustin Brody <libav@parsoma.net>
Thu, 8 Sep 2011 22:43:32 +0000 (18:43 -0400)
committerAnton Khirnov <anton@khirnov.net>
Thu, 15 Sep 2011 07:34:16 +0000 (09:34 +0200)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavformat/matroskadec.c

index 0379977..8402967 100644 (file)
@@ -1148,7 +1148,7 @@ static int matroska_parse_seekhead_entry(MatroskaDemuxContext *matroska, int idx
             matroska->num_levels++;
             matroska->current_id = 0;
 
-            ebml_parse(matroska, matroska_segment, matroska);
+            ret = ebml_parse(matroska, matroska_segment, matroska);
 
             /* remove dummy level */
             while (matroska->num_levels) {