Revision f59d8ff8 libavformat/mmf.c

View differences:

libavformat/mmf.c
53 53
    int64_t pos;
54 54

  
55 55
    pos = url_ftell(pb);
56
    url_fseek(pb, start - 4, SEEK_SET);
56
    avio_seek(pb, start - 4, SEEK_SET);
57 57
    avio_wb32(pb, (uint32_t)(pos - start));
58
    url_fseek(pb, pos, SEEK_SET);
58
    avio_seek(pb, pos, SEEK_SET);
59 59
}
60 60

  
61 61
static int mmf_write_header(AVFormatContext *s)
......
143 143
        size = pos - mmf->awapos;
144 144

  
145 145
        /* Fill Atsq chunk */
146
        url_fseek(pb, mmf->atsqpos, SEEK_SET);
146
        avio_seek(pb, mmf->atsqpos, SEEK_SET);
147 147

  
148 148
        /* "play wav" */
149 149
        avio_w8(pb, 0); /* start time */
......
158 158
        /* "end of sequence" */
159 159
        avio_write(pb, "\x00\x00\x00\x00", 4);
160 160

  
161
        url_fseek(pb, pos, SEEK_SET);
161
        avio_seek(pb, pos, SEEK_SET);
162 162

  
163 163
        put_flush_packet(pb);
164 164
    }
......
195 195
    file_size = avio_rb32(pb);
196 196

  
197 197
    /* Skip some unused chunks that may or may not be present */
198
    for(;; url_fseek(pb, size, SEEK_CUR)) {
198
    for(;; avio_seek(pb, size, SEEK_CUR)) {
199 199
        tag = avio_rl32(pb);
200 200
        size = avio_rb32(pb);
201 201
        if(tag == MKTAG('C','N','T','I')) continue;
......
226 226
    avio_r8(pb); /* time base g */
227 227

  
228 228
    /* Skip some unused chunks that may or may not be present */
229
    for(;; url_fseek(pb, size, SEEK_CUR)) {
229
    for(;; avio_seek(pb, size, SEEK_CUR)) {
230 230
        tag = avio_rl32(pb);
231 231
        size = avio_rb32(pb);
232 232
        if(tag == MKTAG('A','t','s','q')) continue;

Also available in: Unified diff