[FFmpeg-cvslog] r17145 - trunk/libavformat/mxfenc.c
bcoudurier
subversion
Wed Feb 11 02:06:12 CET 2009
Author: bcoudurier
Date: Wed Feb 11 02:06:12 2009
New Revision: 17145
Log:
fix last keyframe index accross body partitions
Modified:
trunk/libavformat/mxfenc.c
Modified: trunk/libavformat/mxfenc.c
==============================================================================
--- trunk/libavformat/mxfenc.c Wed Feb 11 01:56:27 2009 (r17144)
+++ trunk/libavformat/mxfenc.c Wed Feb 11 02:06:12 2009 (r17145)
@@ -881,7 +881,7 @@ static void mxf_write_index_table_segmen
ByteIOContext *pb = s->pb;
int i, j;
int temporal_reordering = 0;
- int key_index = 0;
+ int key_index = mxf->last_key_index;
av_log(s, AV_LOG_DEBUG, "edit units count %d\n", mxf->edit_units_count);
@@ -992,6 +992,7 @@ static void mxf_write_index_table_segmen
put_be32(pb, mxf->index_entries[i].slice_offset);
}
+ mxf->last_key_index = key_index - mxf->edit_units_count;
mxf->last_indexed_edit_unit += mxf->edit_units_count;
mxf->edit_units_count = 0;
}
More information about the ffmpeg-cvslog
mailing list