Commit 09b2faa8 authored by aurel's avatar aurel

Better way to detect cluster (fix files encoded with Haali's muxer).


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6943 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 6b0eba6e
......@@ -2143,11 +2143,8 @@ matroska_read_header (AVFormatContext *s,
}
}
if (res < 0)
return res;
/* Have we found a cluster? */
if (res == 1) {
if (ebml_peek_id(matroska, NULL) == MATROSKA_ID_CLUSTER) {
int i, j;
MatroskaTrack *track;
AVStream *st;
......@@ -2264,9 +2261,10 @@ matroska_read_header (AVFormatContext *s,
/* What do we do with private data? E.g. for Vorbis. */
}
res = 0;
}
return 0;
return res;
}
static int
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment