matroskadec: bail on parsing of incorrect seek index segments

Signed-off-by: Anton Khirnov <anton@khirnov.net>
pull/2/head
Dustin Brody 13 years ago committed by Anton Khirnov
parent 940173d4d1
commit 4a9628f276
  1. 2
      libavformat/matroskadec.c

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

Loading…
Cancel
Save