Skip to content
Snippets Groups Projects
Commit 0cfa3596 authored by Baptiste Coudurier's avatar Baptiste Coudurier
Browse files

fix last keyframe index accross body partitions

Originally committed as revision 17145 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 1585b93a
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment