factorize
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sun, 31 Aug 2008 04:26:12 +0000 (04:26 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sun, 31 Aug 2008 04:26:12 +0000 (04:26 +0000)
Originally committed as revision 15114 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mxfenc.c

index 36af7ba..5096a4b 100644 (file)
@@ -635,10 +635,8 @@ static void mxf_write_package(AVFormatContext *s, enum MXFMetadataSetType type)
     if (type == SourcePackage) {
         mxf_write_local_tag(pb, 16, 0x4701);
         mxf_write_uuid(pb, MultipleDescriptor, 0);
-    }
-
-    if (type == SourcePackage)
         mxf_write_multi_descriptor(s);
+    }
 
     for (i = 0; i < s->nb_streams; i++) {
         AVStream *st = s->streams[i];