[FFmpeg-cvslog] r17212 - trunk/libavformat/mxfenc.c
bcoudurier
subversion
Fri Feb 13 20:04:33 CET 2009
Author: bcoudurier
Date: Fri Feb 13 20:04:30 2009
New Revision: 17212
Log:
fix slice offset computation
Modified:
trunk/libavformat/mxfenc.c
Modified: trunk/libavformat/mxfenc.c
==============================================================================
--- trunk/libavformat/mxfenc.c Fri Feb 13 17:07:20 2009 (r17211)
+++ trunk/libavformat/mxfenc.c Fri Feb 13 20:04:30 2009 (r17212)
@@ -1723,8 +1723,9 @@ static int mxf_write_packet(AVFormatCont
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);
More information about the ffmpeg-cvslog
mailing list