changeset 4441:0fd16041ac29 libavformat

fix timecode value
author bcoudurier
date Tue, 10 Feb 2009 22:59:13 +0000
parents 64f62c9643c3
children 85f1c6887bef
files mxfenc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mxfenc.c	Tue Feb 10 09:02:29 2009 +0000
+++ b/mxfenc.c	Tue Feb 10 22:59:13 2009 +0000
@@ -1299,7 +1299,7 @@
     unsigned fps, frame;
     uint32_t time_code;
 
-    frame = mxf->edit_units_count;
+    frame = mxf->last_indexed_edit_unit + mxf->edit_units_count;
 
     // write system metadata pack
     put_buffer(pb, system_metadata_pack_key, 16);