Revision a2704c97 libavformat/aiffenc.c

View differences:

libavformat/aiffenc.c
45 45

  
46 46
    /* FORM AIFF header */
47 47
    ffio_wfourcc(pb, "FORM");
48
    aiff->form = url_ftell(pb);
48
    aiff->form = avio_tell(pb);
49 49
    avio_wb32(pb, 0);                    /* file length */
50 50
    ffio_wfourcc(pb, aifc ? "AIFC" : "AIFF");
51 51

  
......
66 66
    avio_wb32(pb, aifc ? 24 : 18); /* size */
67 67
    avio_wb16(pb, enc->channels);  /* Number of channels */
68 68

  
69
    aiff->frames = url_ftell(pb);
69
    aiff->frames = avio_tell(pb);
70 70
    avio_wb32(pb, 0);              /* Number of frames */
71 71

  
72 72
    if (!enc->bits_per_coded_sample)
......
90 90

  
91 91
    /* Sound data chunk */
92 92
    ffio_wfourcc(pb, "SSND");
93
    aiff->ssnd = url_ftell(pb);         /* Sound chunk size */
93
    aiff->ssnd = avio_tell(pb);         /* Sound chunk size */
94 94
    avio_wb32(pb, 0);                    /* Sound samples data size */
95 95
    avio_wb32(pb, 0);                    /* Data offset */
96 96
    avio_wb32(pb, 0);                    /* Block-size (block align) */
......
118 118

  
119 119
    /* Chunks sizes must be even */
120 120
    int64_t file_size, end_size;
121
    end_size = file_size = url_ftell(pb);
121
    end_size = file_size = avio_tell(pb);
122 122
    if (file_size & 1) {
123 123
        avio_w8(pb, 0);
124 124
        end_size++;

Also available in: Unified diff