Revision a2704c97 libavformat/mmf.c

View differences:

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

  
55
    pos = url_ftell(pb);
55
    pos = avio_tell(pb);
56 56
    avio_seek(pb, start - 4, SEEK_SET);
57 57
    avio_wb32(pb, (uint32_t)(pos - start));
58 58
    avio_seek(pb, pos, SEEK_SET);
......
84 84

  
85 85
    avio_write(pb, "ATR\x00", 4);
86 86
    avio_wb32(pb, 0);
87
    mmf->atrpos = url_ftell(pb);
87
    mmf->atrpos = avio_tell(pb);
88 88
    avio_w8(pb, 0); /* format type */
89 89
    avio_w8(pb, 0); /* sequence type */
90 90
    avio_w8(pb, (0 << 7) | (1 << 4) | rate); /* (channel << 7) | (format << 4) | rate */
......
94 94

  
95 95
    ffio_wfourcc(pb, "Atsq");
96 96
    avio_wb32(pb, 16);
97
    mmf->atsqpos = url_ftell(pb);
97
    mmf->atsqpos = avio_tell(pb);
98 98
    /* Will be filled on close */
99 99
    avio_write(pb, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 16);
100 100

  
......
139 139
        end_tag_be(pb, mmf->atrpos);
140 140
        end_tag_be(pb, 8);
141 141

  
142
        pos = url_ftell(pb);
142
        pos = avio_tell(pb);
143 143
        size = pos - mmf->awapos;
144 144

  
145 145
        /* Fill Atsq chunk */

Also available in: Unified diff