Commit 666e0bcc authored by bcoudurier's avatar bcoudurier

fix slice offset computation

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17212 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ccc4bbb3
......@@ -1723,8 +1723,9 @@ static int mxf_write_packet(AVFormatContext *s, AVPacket *pkt)
mxf->edit_units_count++;
} else if (st->index == 1) {
mxf->index_entries[mxf->edit_units_count-1].slice_offset =
url_ftell(pb) - mxf->index_entries[mxf->edit_units_count-1].offset;
uint64_t pos = url_ftell(pb);
mxf->index_entries[mxf->edit_units_count-1].slice_offset = pos +
klv_fill_size(pos) - mxf->index_entries[mxf->edit_units_count-1].offset;
}
mxf_write_klv_fill(s);
......
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