Revision f59d8ff8 libavformat/mpc.c

View differences:

libavformat/mpc.c
98 98
        ff_ape_parse_tag(s);
99 99
        if (!av_metadata_get(s->metadata, "", NULL, AV_METADATA_IGNORE_SUFFIX))
100 100
            ff_id3v1_read(s);
101
        url_fseek(s->pb, pos, SEEK_SET);
101
        avio_seek(s->pb, pos, SEEK_SET);
102 102
    }
103 103

  
104 104
    return 0;
......
114 114
        return -1;
115 115

  
116 116
    if(c->curframe != c->lastframe + 1){
117
        url_fseek(s->pb, c->frames[c->curframe].pos, SEEK_SET);
117
        avio_seek(s->pb, c->frames[c->curframe].pos, SEEK_SET);
118 118
        c->curbits = c->frames[c->curframe].skip;
119 119
    }
120 120
    c->lastframe = c->curframe;
......
129 129
        size2 = (tmp >> (44 - curbits)) & 0xFFFFF;
130 130
    }
131 131
    curbits += 20;
132
    url_fseek(s->pb, pos, SEEK_SET);
132
    avio_seek(s->pb, pos, SEEK_SET);
133 133

  
134 134
    size = ((size2 + curbits + 31) & ~31) >> 3;
135 135
    if(cur == c->frames_noted){
......
153 153
    pkt->pts = cur;
154 154
    ret = avio_read(s->pb, pkt->data + 4, size);
155 155
    if(c->curbits)
156
        url_fseek(s->pb, -4, SEEK_CUR);
156
        avio_seek(s->pb, -4, SEEK_CUR);
157 157
    if(ret < size){
158 158
        av_free_packet(pkt);
159 159
        return AVERROR(EIO);

Also available in: Unified diff