[FFmpeg-cvslog] r15115 - trunk/libavformat/mxfenc.c

bcoudurier subversion
Sun Aug 31 06:35:10 CEST 2008


Author: bcoudurier
Date: Sun Aug 31 06:35:09 2008
New Revision: 15115

Log:
do no write multi descriptor when only one track is present

Modified:
   trunk/libavformat/mxfenc.c

Modified: trunk/libavformat/mxfenc.c
==============================================================================
--- trunk/libavformat/mxfenc.c	(original)
+++ trunk/libavformat/mxfenc.c	Sun Aug 31 06:35:09 2008
@@ -634,8 +634,11 @@ static void mxf_write_package(AVFormatCo
     // write multiple descriptor reference
     if (type == SourcePackage) {
         mxf_write_local_tag(pb, 16, 0x4701);
-        mxf_write_uuid(pb, MultipleDescriptor, 0);
-        mxf_write_multi_descriptor(s);
+        if (s->nb_streams > 1) {
+            mxf_write_uuid(pb, MultipleDescriptor, 0);
+            mxf_write_multi_descriptor(s);
+        } else
+            mxf_write_uuid(pb, SubDescriptor, 0);
     }
 
     for (i = 0; i < s->nb_streams; i++) {




More information about the ffmpeg-cvslog mailing list