[FFmpeg-cvslog] r14567 - trunk/libavformat/matroskadec.c

aurel subversion
Tue Aug 5 02:40:47 CEST 2008


Author: aurel
Date: Tue Aug  5 02:40:46 2008
New Revision: 14567

Log:
matroskadec: invert a test

Modified:
   trunk/libavformat/matroskadec.c

Modified: trunk/libavformat/matroskadec.c
==============================================================================
--- trunk/libavformat/matroskadec.c	(original)
+++ trunk/libavformat/matroskadec.c	Tue Aug  5 02:40:46 2008
@@ -1638,7 +1638,10 @@ matroska_read_header (AVFormatContext   
     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;




More information about the ffmpeg-cvslog mailing list