aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-02-10 06:09:50 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-02-10 06:09:50 +0000
commit7be3405291ff0fc59e4ca05cd5379383ffef815c (patch)
tree5c376ab001108a7380fce97e0fe2d69b0b0b6ff7 /libavformat
parentb25ee3fb387e6abdb518bb7f3bc9611acb1388d7 (diff)
downloadffmpeg-7be3405291ff0fc59e4ca05cd5379383ffef815c.tar.gz
fix header byte count
Originally committed as revision 17119 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mxfenc.c3
1 files changed, 2 insertions, 1 deletions
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);