From 0e633e2b017767789e8e564788ca9e9f5a20d2ca Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Tue, 10 Feb 2009 22:59:13 +0000 Subject: [PATCH] fix timecode value Originally committed as revision 17139 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mxfenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index 6aba6ee60b..ae9e764b1f 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -1299,7 +1299,7 @@ static void mxf_write_system_item(AVFormatContext *s) 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);