Commit 6783e338 authored by bcoudurier's avatar bcoudurier

fix last keyframe index accross body partitions

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17145 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 90b30b57
......@@ -881,7 +881,7 @@ static void mxf_write_index_table_segment(AVFormatContext *s)
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_segment(AVFormatContext *s)
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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment