[FFmpeg-soc] [soc]: r3482 - mxf/mxfenc.c

spyfeng subversion at mplayerhq.hu
Wed Aug 20 16:54:55 CEST 2008


Author: spyfeng
Date: Wed Aug 20 16:54:55 2008
New Revision: 3482

Log:
simplify the code, type is already represent the type of package


Modified:
   mxf/mxfenc.c

Modified: mxf/mxfenc.c
==============================================================================
--- mxf/mxfenc.c	(original)
+++ mxf/mxfenc.c	Wed Aug 20 16:54:55 2008
@@ -417,11 +417,7 @@ static void mxf_write_package(AVFormatCo
 
     // write package umid
     mxf_write_local_tag(pb, 32, 0x4401);
-    if (type == MaterialPackage) {
-        mxf_write_umid(pb, MaterialPackage, 0);
-    } else {
-        mxf_write_umid(pb, SourcePackage, 0);
-    }
+    mxf_write_umid(pb, type, 0);
     PRINT_KEY(s, "package umid second part", pb->buf_ptr - 16);
     // write create date
     mxf_write_local_tag(pb, 8, 0x4405);



More information about the FFmpeg-soc mailing list