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

spyfeng subversion at mplayerhq.hu
Thu Jul 24 16:30:24 CEST 2008


Author: spyfeng
Date: Thu Jul 24 16:30:24 2008
New Revision: 2844

Log:
fix bug in mxf_write_structural_component().


Modified:
   mxf/mxfenc.c

Modified: mxf/mxfenc.c
==============================================================================
--- mxf/mxfenc.c	(original)
+++ mxf/mxfenc.c	Thu Jul 24 16:30:24 2008
@@ -674,7 +674,7 @@ static int mxf_write_structural_componen
     klv->key[14] = 0x11;
     klv->key[15] = 0x00;
     put_buffer(pb, klv->key, 16);
-    klv_encode_ber_length(pb, 90);
+    klv_encode_ber_length(pb, 108);
 
     st = s->streams[stream_index];
 
@@ -707,13 +707,13 @@ static int mxf_write_structural_componen
 
         // write source track id
         mxf_write_local_tag(pb, 4, 0x1102);
-        put_be64(pb, 0);
+        put_be32(pb, 0);
     } else {
         mxf_write_local_tag(pb, 32, 0x1101);
         put_buffer(pb, mxf->top_src_package_uid, 32);
 
         mxf_write_local_tag(pb, 4, 0x1102);
-        put_be64(pb, stream_index + 1);
+        put_be32(pb, stream_index + 1);
     }
     return 0;
 }



More information about the FFmpeg-soc mailing list