# HG changeset patch # User bcoudurier # Date 1234246190 0 # Node ID 7ab5a6c4616bd00e103f2999c99d5fa8065a1252 # Parent f8ba6cf226e7fb6d0e2c99119ae9db30f9a2407b fix header byte count diff -r f8ba6cf226e7 -r 7ab5a6c4616b mxfenc.c --- a/mxfenc.c Tue Feb 10 05:35:28 2009 +0000 +++ b/mxfenc.c Tue Feb 10 06:09:50 2009 +0000 @@ -1036,11 +1036,12 @@ if (write_metadata) { // mark the start of the headermetadata and calculate metadata size - int64_t pos, start = url_ftell(s->pb); + int64_t pos, start; unsigned header_byte_count; mxf_write_klv_fill(s); + start = url_ftell(s->pb); mxf_write_primer_pack(s); mxf_write_header_metadata_sets(s); pos = url_ftell(s->pb);