diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-08-31 03:20:41 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-08-31 03:20:41 +0000 |
commit | ca276e6ae260879d6e759a6d6119801458157d96 (patch) | |
tree | 814f903cb3b8b2af37445d418ca2ddfcda5baf28 /libavformat/mxfenc.c | |
parent | 158efd74fe15d8fb4e56d3055db0ae48bc665426 (diff) | |
download | ffmpeg-ca276e6ae260879d6e759a6d6119801458157d96.tar.gz |
simplify current partition offset
Originally committed as revision 15105 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mxfenc.c')
-rw-r--r-- | libavformat/mxfenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index 3f2845b5ad..544dd5dc4f 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -693,7 +693,7 @@ static void mxf_write_partition(AVFormatContext *s, int64_t byte_position, int b put_be16(pb, 2); // minorVersion put_be32(pb, 1); // kagSize - put_be64(pb, byte_position); // thisPartition + put_be64(pb, url_ftell(pb) - 25); // thisPartition put_be64(pb, 0); // previousPartition // set offset |