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

spyfeng subversion at mplayerhq.hu
Sat Aug 16 04:39:34 CEST 2008


Author: spyfeng
Date: Sat Aug 16 04:39:34 2008
New Revision: 3333

Log:
modify multiple descriptor reference and instance uid


Modified:
   mxf/mxfenc.c

Modified: mxf/mxfenc.c
==============================================================================
--- mxf/mxfenc.c	(original)
+++ mxf/mxfenc.c	Sat Aug 16 04:39:34 2008
@@ -506,10 +506,8 @@ static int mxf_write_package(AVFormatCon
 
     if (type == SourcePackage) {
         // write multiple descriptor reference
-        if (mxf_generate_reference(s, &refs->mul_desc, 1) < 0)
-            return -1;
         mxf_write_local_tag(pb, 16, 0x4701);
-        put_buffer(pb, *refs->mul_desc, 16);
+        mxf_write_uuid(pb, MultipleDescriptor, 0);
     }
     return 0;
 }
@@ -692,9 +690,9 @@ static int mxf_write_multi_descriptor(AV
     klv_encode_ber_length(pb, 64 + 16 * s->nb_streams);
 
     mxf_write_local_tag(pb, 16, 0x3C0A);
-    put_buffer(pb, *refs->mul_desc, 16);
+    mxf_write_uuid(pb, MultipleDescriptor, 0);
 #ifdef DEBUG
-    PRINT_KEY(s, "multi_desc uid", *refs->mul_desc);
+    PRINT_KEY(s, "multi_desc uid", pb->buf_ptr - 16);
 #endif
     // write sample rate
     // SMPTE377M D.1 says this field is necessary,



More information about the FFmpeg-soc mailing list