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

spyfeng subversion at mplayerhq.hu
Sun Jul 20 15:24:09 CEST 2008


Author: spyfeng
Date: Sun Jul 20 15:24:08 2008
New Revision: 2831

Log:
fix bugs for putting correct param into function put_buffer()


Modified:
   mxf/mxfenc.c

Modified: mxf/mxfenc.c
==============================================================================
--- mxf/mxfenc.c	(original)
+++ mxf/mxfenc.c	Sun Jul 20 15:24:08 2008
@@ -352,7 +352,7 @@ static int mxf_write_preface(AVFormatCon
 
     // write create date as unknown
     mxf_write_local_tag(pb, 8, 0x3B02);
-    put_buffer(pb, 0, 8);
+    put_buffer(pb, "0", 8);
 
     // write version
     mxf_write_local_tag(pb, 2, 0x3B05);
@@ -434,7 +434,7 @@ static int mxf_write_identification(AVFo
 
     // write modified date
     mxf_write_local_tag(pb, 8, 0x3C06);
-    put_buffer(pb, 0, 8);
+    put_buffer(pb, "0", 8);
     return 0;
 }
 
@@ -494,11 +494,11 @@ static int mxf_write_package(AVFormatCon
 
     // write create date
     mxf_write_local_tag(pb, 8, 0x4405);
-    put_buffer(pb, 0, 8);
+    put_buffer(pb, "0", 8);
 
     // write modified date
     mxf_write_local_tag(pb, 8, 0x4404);
-    put_buffer(pb, 0, 8);
+    put_buffer(pb, "0", 8);
 
     // write track refs
     if (mxf_generate_reference(s, &refs->track, s->nb_streams) < 0)
@@ -577,7 +577,7 @@ static int mxf_write_track(AVFormatConte
             i++;
         }
     } else {
-        put_buffer(pb, 0, 4); // track number of material package is 0
+        put_buffer(pb, "0", 4); // track number of material package is 0
     }
 
     mxf_write_local_tag(pb, 8, 0x4B01);
@@ -667,7 +667,7 @@ static int mxf_write_structural_componen
     if (type == SourcePackage) {
         // write source package uid, end of the reference
         mxf_write_local_tag(pb, 32, 0x1101);
-        put_buffer(pb, 0, 32);
+        put_buffer(pb, "0", 32);
 
         // write source track id
         mxf_write_local_tag(pb, 4, 0x1102);



More information about the FFmpeg-soc mailing list