Mercurial > libavformat.hg
changeset 3647:98eb4eb368fa libavformat
matroskadec: invert a test
author | aurel |
---|---|
date | Tue, 05 Aug 2008 00:40:46 +0000 |
parents | 370243aa26c0 |
children | 07f046bf6849 |
files | matroskadec.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/matroskadec.c Tue Aug 05 00:40:43 2008 +0000 +++ b/matroskadec.c Tue Aug 05 00:40:46 2008 +0000 @@ -1638,7 +1638,10 @@ matroska_execute_seekhead(matroska); /* Have we found a cluster? */ - if (ebml_peek_id(matroska, NULL) == MATROSKA_ID_CLUSTER) { + if (ebml_peek_id(matroska, NULL) != MATROSKA_ID_CLUSTER) + return -1; + + { MatroskaTrack *tracks = matroska->tracks.elem; int i, j; AVStream *st;