changeset 3841:cd6c579c5651 libavformat

simplify current partition offset
author bcoudurier
date Sun, 31 Aug 2008 03:20:41 +0000
parents e43947d04029
children c4e0e02a4832
files mxfenc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mxfenc.c	Sun Aug 31 03:12:13 2008 +0000
+++ b/mxfenc.c	Sun Aug 31 03:20:41 2008 +0000
@@ -693,7 +693,7 @@
     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