[Ffmpeg-cvslog] r6528 - trunk/libavformat/mxf.c

bcoudurier subversion
Mon Oct 2 15:22:52 CEST 2006


Author: bcoudurier
Date: Mon Oct  2 15:22:51 2006
New Revision: 6528

Modified:
   trunk/libavformat/mxf.c

Log:
return 0 as stream index if only one stream, this is completely non standard, fix Cars_TL4IO6_239_DEXX_MPEG_TDC_072006.wav.mxf

Modified: trunk/libavformat/mxf.c
==============================================================================
--- trunk/libavformat/mxf.c	(original)
+++ trunk/libavformat/mxf.c	Mon Oct  2 15:22:51 2006
@@ -214,7 +214,8 @@
         if (!memcmp(klv->key + sizeof(mxf_essence_element_key), track->track_number, sizeof(track->track_number)))
             return i;
     }
-    return -1;
+    /* return 0 if only one stream, for OP Atom files with 0 as track number */
+    return s->nb_streams == 1 ? 0 : -1;
 }
 
 static int mxf_read_packet(AVFormatContext *s, AVPacket *pkt)




More information about the ffmpeg-cvslog mailing list