Revision f59d8ff8 libavformat/asfenc.c

View differences:

libavformat/asfenc.c
260 260
    int64_t pos1;
261 261

  
262 262
    pos1 = url_ftell(pb);
263
    url_fseek(pb, pos + 16, SEEK_SET);
263
    avio_seek(pb, pos + 16, SEEK_SET);
264 264
    avio_wl64(pb, pos1 - pos);
265
    url_fseek(pb, pos1, SEEK_SET);
265
    avio_seek(pb, pos1, SEEK_SET);
266 266
}
267 267

  
268 268
/* write an asf chunk (only used in streaming case) */
......
443 443
                return -1;
444 444
            if (wavsize != extra_size) {
445 445
                cur_pos = url_ftell(pb);
446
                url_fseek(pb, es_pos, SEEK_SET);
446
                avio_seek(pb, es_pos, SEEK_SET);
447 447
                avio_wl32(pb, wavsize); /* wav header len */
448
                url_fseek(pb, cur_pos, SEEK_SET);
448
                avio_seek(pb, cur_pos, SEEK_SET);
449 449
            }
450 450
            /* ERROR Correction */
451 451
            avio_w8(pb, 0x01);
......
530 530
    if (asf->is_streamed) {
531 531
        header_size += 8 + 30 + 50;
532 532

  
533
        url_fseek(pb, header_offset - 10 - 30, SEEK_SET);
533
        avio_seek(pb, header_offset - 10 - 30, SEEK_SET);
534 534
        avio_wl16(pb, header_size);
535
        url_fseek(pb, header_offset - 2 - 30, SEEK_SET);
535
        avio_seek(pb, header_offset - 2 - 30, SEEK_SET);
536 536
        avio_wl16(pb, header_size);
537 537

  
538 538
        header_size -= 8 + 30 + 50;
539 539
    }
540 540
    header_size += 24 + 6;
541
    url_fseek(pb, header_offset - 14, SEEK_SET);
541
    avio_seek(pb, header_offset - 14, SEEK_SET);
542 542
    avio_wl64(pb, header_size);
543
    url_fseek(pb, cur_pos, SEEK_SET);
543
    avio_seek(pb, cur_pos, SEEK_SET);
544 544

  
545 545
    /* movie chunk, followed by packets of packet_size */
546 546
    asf->data_offset = cur_pos;
......
871 871
    } else {
872 872
        /* rewrite an updated header */
873 873
        file_size = url_ftell(s->pb);
874
        url_fseek(s->pb, 0, SEEK_SET);
874
        avio_seek(s->pb, 0, SEEK_SET);
875 875
        asf_write_header1(s, file_size, data_size - asf->data_offset);
876 876
    }
877 877

  

Also available in: Unified diff