Revision a2704c97 libavformat/swfenc.c

View differences:

libavformat/swfenc.c
29 29
    SWFContext *swf = s->priv_data;
30 30
    AVIOContext *pb = s->pb;
31 31

  
32
    swf->tag_pos = url_ftell(pb);
32
    swf->tag_pos = avio_tell(pb);
33 33
    swf->tag = tag;
34 34
    /* reserve some room for the tag */
35 35
    if (tag & TAG_LONG) {
......
47 47
    int64_t pos;
48 48
    int tag_len, tag;
49 49

  
50
    pos = url_ftell(pb);
50
    pos = avio_tell(pb);
51 51
    tag_len = pos - swf->tag_pos - 2;
52 52
    tag = swf->tag;
53 53
    avio_seek(pb, swf->tag_pos, SEEK_SET);
......
246 246

  
247 247
    put_swf_rect(pb, 0, width * 20, 0, height * 20);
248 248
    avio_wl16(pb, (rate * 256) / rate_base); /* frame rate */
249
    swf->duration_pos = url_ftell(pb);
249
    swf->duration_pos = avio_tell(pb);
250 250
    avio_wl16(pb, (uint16_t)(DUMMY_DURATION * (int64_t)rate / rate_base)); /* frame count */
251 251

  
252 252
    /* avm2/swf v9 (also v8?) files require a file attribute tag */
......
346 346
            /* create a new video object */
347 347
            put_swf_tag(s, TAG_VIDEOSTREAM);
348 348
            avio_wl16(pb, VIDEO_ID);
349
            swf->vframes_pos = url_ftell(pb);
349
            swf->vframes_pos = avio_tell(pb);
350 350
            avio_wl16(pb, 15000); /* hard flash player limit */
351 351
            avio_wl16(pb, enc->width);
352 352
            avio_wl16(pb, enc->height);
......
493 493

  
494 494
    /* patch file size and number of frames if not streamed */
495 495
    if (!url_is_streamed(s->pb) && video_enc) {
496
        file_size = url_ftell(pb);
496
        file_size = avio_tell(pb);
497 497
        avio_seek(pb, 4, SEEK_SET);
498 498
        avio_wl32(pb, file_size);
499 499
        avio_seek(pb, swf->duration_pos, SEEK_SET);

Also available in: Unified diff