[FFmpeg-soc] [soc]: r3317 - in mxf: mxf.h mxfenc.c

spyfeng subversion at mplayerhq.hu
Fri Aug 15 10:38:02 CEST 2008


Author: spyfeng
Date: Fri Aug 15 10:38:01 2008
New Revision: 3317

Log:
modify wrting content storage reference and instance uid


Modified:
   mxf/mxf.h
   mxf/mxfenc.c

Modified: mxf/mxf.h
==============================================================================
--- mxf/mxf.h	(original)
+++ mxf/mxf.h	Fri Aug 15 10:38:01 2008
@@ -39,6 +39,7 @@ enum MXFMetadataSetType {
     CryptoContext,
     Preface,
     Identification,
+    ContentStorage,
 };
 
 typedef struct {

Modified: mxf/mxfenc.c
==============================================================================
--- mxf/mxfenc.c	(original)
+++ mxf/mxfenc.c	Fri Aug 15 10:38:01 2008
@@ -355,10 +355,8 @@ static int mxf_write_preface(AVFormatCon
     mxf_write_uuid(pb, Identification, 0);
 
     // write content_storage_refs
-    if (mxf_generate_reference(s, &refs->content_storage, 1) < 0)
-        return -1;
     mxf_write_local_tag(pb, 16, 0x3B03);
-    put_buffer(pb, *refs->content_storage, 16);
+    mxf_write_uuid(pb, ContentStorage, 0);
 
     mxf_write_local_tag(pb, 16, 0x3B09);
     put_buffer(pb, op1a_ul, 16);
@@ -442,10 +440,10 @@ static int mxf_write_content_storage(AVF
 
     // write uid
     mxf_write_local_tag(pb, 16, 0x3C0A);
-    put_buffer(pb, *refs->content_storage, 16);
+    mxf_write_uuid(pb, ContentStorage, 0);
 #ifdef DEBUG
     PRINT_KEY(s, "content storage key", klv->key);
-    PRINT_KEY(s, "content storage uid", *refs->content_storage);
+    PRINT_KEY(s, "content storage uid", pb->buf_ptr - 16);
 #endif
     // write package reference
     refs->package= av_mallocz(s->nb_streams * sizeof(*refs->package));



More information about the FFmpeg-soc mailing list