Revision f59d8ff8 libavformat/gxfenc.c

View differences:

libavformat/gxfenc.c
131 131
        size = url_ftell(pb) - pos;
132 132
    }
133 133
    curpos = url_ftell(pb);
134
    url_fseek(pb, pos + 6, SEEK_SET);
134
    avio_seek(pb, pos + 6, SEEK_SET);
135 135
    avio_wb32(pb, size);
136
    url_fseek(pb, curpos, SEEK_SET);
136
    avio_seek(pb, curpos, SEEK_SET);
137 137
    return curpos - pos;
138 138
}
139 139

  
......
142 142
    int64_t curpos;
143 143

  
144 144
    curpos = url_ftell(pb);
145
    url_fseek(pb, pos, SEEK_SET);
145
    avio_seek(pb, pos, SEEK_SET);
146 146
    avio_wb16(pb, curpos - pos - 2);
147
    url_fseek(pb, curpos, SEEK_SET);
147
    avio_seek(pb, curpos, SEEK_SET);
148 148
    return curpos - pos;
149 149
}
150 150

  
......
581 581
        }
582 582

  
583 583
        curpos = url_ftell(pb);
584
        url_fseek(pb, startpos, SEEK_SET);
584
        avio_seek(pb, startpos, SEEK_SET);
585 585
        avio_wl16(pb, curpos - startpos);
586
        url_fseek(pb, curpos, SEEK_SET);
586
        avio_seek(pb, curpos, SEEK_SET);
587 587
    }
588 588
    return url_ftell(pb) - pos;
589 589
}
......
776 776

  
777 777
    gxf_write_eos_packet(pb);
778 778
    end = url_ftell(pb);
779
    url_fseek(pb, 0, SEEK_SET);
779
    avio_seek(pb, 0, SEEK_SET);
780 780
    /* overwrite map, flt and umf packets with new values */
781 781
    gxf_write_map_packet(s, 1);
782 782
    gxf_write_flt_packet(s);
......
784 784
    put_flush_packet(pb);
785 785
    /* update duration in all map packets */
786 786
    for (i = 1; i < gxf->map_offsets_nb; i++) {
787
        url_fseek(pb, gxf->map_offsets[i], SEEK_SET);
787
        avio_seek(pb, gxf->map_offsets[i], SEEK_SET);
788 788
        gxf_write_map_packet(s, 1);
789 789
        put_flush_packet(pb);
790 790
    }
791 791

  
792
    url_fseek(pb, end, SEEK_SET);
792
    avio_seek(pb, end, SEEK_SET);
793 793

  
794 794
    av_freep(&gxf->flt_entries);
795 795
    av_freep(&gxf->map_offsets);

Also available in: Unified diff