diff mxfenc.c @ 4433:7ab5a6c4616b libavformat

fix header byte count
author bcoudurier
date Tue, 10 Feb 2009 06:09:50 +0000
parents f8ba6cf226e7
children a75d42745d16
line wrap: on
line diff
--- 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);