Revision ab91e84d libavformat/mxfenc.c

View differences:

libavformat/mxfenc.c
1723 1723

  
1724 1724
        mxf->edit_units_count++;
1725 1725
    } else if (st->index == 1) {
1726
        mxf->index_entries[mxf->edit_units_count-1].slice_offset =
1727
            url_ftell(pb) - mxf->index_entries[mxf->edit_units_count-1].offset;
1726
        uint64_t pos = url_ftell(pb);
1727
        mxf->index_entries[mxf->edit_units_count-1].slice_offset = pos +
1728
            klv_fill_size(pos) - mxf->index_entries[mxf->edit_units_count-1].offset;
1728 1729
    }
1729 1730

  
1730 1731
    mxf_write_klv_fill(s);

Also available in: Unified diff