diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-05 00:40:46 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-05 00:40:46 +0000 |
commit | a636a56bf44d0b223214bc6d60d0560ddc469d26 (patch) | |
tree | 8e3e9817f719f9ee12f8b515582fa0dc807f14b3 /libavformat/matroskadec.c | |
parent | 4348571b1ac4ec616363d62ea5615b34d77ad0bc (diff) | |
download | ffmpeg-a636a56bf44d0b223214bc6d60d0560ddc469d26.tar.gz |
matroskadec: invert a test
Originally committed as revision 14567 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/matroskadec.c')
-rw-r--r-- | libavformat/matroskadec.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 6b1ff97d50..abd8cc2237 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -1638,7 +1638,10 @@ matroska_read_header (AVFormatContext *s, 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; |