Revision f59d8ff8 libavformat/swfenc.c

View differences:

libavformat/swfenc.c
50 50
    pos = url_ftell(pb);
51 51
    tag_len = pos - swf->tag_pos - 2;
52 52
    tag = swf->tag;
53
    url_fseek(pb, swf->tag_pos, SEEK_SET);
53
    avio_seek(pb, swf->tag_pos, SEEK_SET);
54 54
    if (tag & TAG_LONG) {
55 55
        tag &= ~TAG_LONG;
56 56
        avio_wl16(pb, (tag << 6) | 0x3f);
......
59 59
        assert(tag_len < 0x3f);
60 60
        avio_wl16(pb, (tag << 6) | tag_len);
61 61
    }
62
    url_fseek(pb, pos, SEEK_SET);
62
    avio_seek(pb, pos, SEEK_SET);
63 63
}
64 64

  
65 65
static inline void max_nbits(int *nbits_ptr, int val)
......
494 494
    /* patch file size and number of frames if not streamed */
495 495
    if (!url_is_streamed(s->pb) && video_enc) {
496 496
        file_size = url_ftell(pb);
497
        url_fseek(pb, 4, SEEK_SET);
497
        avio_seek(pb, 4, SEEK_SET);
498 498
        avio_wl32(pb, file_size);
499
        url_fseek(pb, swf->duration_pos, SEEK_SET);
499
        avio_seek(pb, swf->duration_pos, SEEK_SET);
500 500
        avio_wl16(pb, swf->video_frame_number);
501
        url_fseek(pb, swf->vframes_pos, SEEK_SET);
501
        avio_seek(pb, swf->vframes_pos, SEEK_SET);
502 502
        avio_wl16(pb, swf->video_frame_number);
503
        url_fseek(pb, file_size, SEEK_SET);
503
        avio_seek(pb, file_size, SEEK_SET);
504 504
    }
505 505
    return 0;
506 506
}

Also available in: Unified diff