From 7be3405291ff0fc59e4ca05cd5379383ffef815c Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Tue, 10 Feb 2009 06:09:50 +0000 Subject: [PATCH] fix header byte count Originally committed as revision 17119 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mxfenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index 70d27e6168..9cd5a40069 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -1036,11 +1036,12 @@ static void mxf_write_partition(AVFormatContext *s, int bodysid, 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);