mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
fix slice offset computation
Originally committed as revision 17212 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
03b127477f
commit
ab91e84d2b
@ -1723,8 +1723,9 @@ static int mxf_write_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
|
|
||||||
mxf->edit_units_count++;
|
mxf->edit_units_count++;
|
||||||
} else if (st->index == 1) {
|
} else if (st->index == 1) {
|
||||||
mxf->index_entries[mxf->edit_units_count-1].slice_offset =
|
uint64_t pos = url_ftell(pb);
|
||||||
url_ftell(pb) - mxf->index_entries[mxf->edit_units_count-1].offset;
|
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);
|
mxf_write_klv_fill(s);
|
||||||
|
Loading…
Reference in New Issue
Block a user