Revision f59d8ff8 libavformat/mxfenc.c

View differences:

libavformat/mxfenc.c
1267 1267
        header_byte_count = pos - start + klv_fill_size(pos);
1268 1268

  
1269 1269
        // update header_byte_count
1270
        url_fseek(pb, header_byte_count_offset, SEEK_SET);
1270
        avio_seek(pb, header_byte_count_offset, SEEK_SET);
1271 1271
        avio_wb64(pb, header_byte_count);
1272
        url_fseek(pb, pos, SEEK_SET);
1272
        avio_seek(pb, pos, SEEK_SET);
1273 1273
    }
1274 1274

  
1275 1275
    put_flush_packet(pb);
......
1785 1785
    mxf_write_random_index_pack(s);
1786 1786

  
1787 1787
    if (!url_is_streamed(s->pb)) {
1788
        url_fseek(pb, 0, SEEK_SET);
1788
        avio_seek(pb, 0, SEEK_SET);
1789 1789
        if (mxf->edit_unit_byte_count) {
1790 1790
            mxf_write_partition(s, 1, 2, header_closed_partition_key, 1);
1791 1791
            mxf_write_klv_fill(s);

Also available in: Unified diff