diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-02-11 01:06:12 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-02-11 01:06:12 +0000 |
commit | 0cfa359660ddee5a854ea95acfcb1c435b0d2bb1 (patch) | |
tree | a3b474ed10f287d89edffd382acde2fee8c37d41 /libavformat | |
parent | 1585b93a2c59d8c1202e3d4457de399bfd5794dc (diff) | |
download | ffmpeg-0cfa359660ddee5a854ea95acfcb1c435b0d2bb1.tar.gz |
fix last keyframe index accross body partitions
Originally committed as revision 17145 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mxfenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index c12c0a162e..1a9fe46008 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -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; } |