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

spyfeng subversion at mplayerhq.hu
Fri Aug 8 07:26:42 CEST 2008


Author: spyfeng
Date: Fri Aug  8 07:26:42 2008
New Revision: 3079

Log:
fix bug for calculating the length of preface set.


Modified:
   mxf/mxfenc.c

Modified: mxf/mxfenc.c
==============================================================================
--- mxf/mxfenc.c	(original)
+++ mxf/mxfenc.c	Fri Aug  8 07:26:42 2008
@@ -377,7 +377,7 @@ static int mxf_write_preface(AVFormatCon
     AV_WB24(klv->key + 13, 0x012f00);
 
     put_buffer(pb, klv->key, 16);
-    klv_encode_ber_length(pb, 146);
+    klv_encode_ber_length(pb, 130 + 16 * mxf->essence_container_count);
 
     // write preface set uid
     mxf_generate_uuid(s, uid);



More information about the FFmpeg-soc mailing list