Browse Source

fix slice offset computation

Originally committed as revision 17212 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Baptiste Coudurier 16 years ago
parent
commit
ab91e84d2b
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      libavformat/mxfenc.c

+ 3
- 2
libavformat/mxfenc.c View File

@@ -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);


Loading…
Cancel
Save