Revision f59d8ff8 libavformat/ape.c

View differences:

libavformat/ape.c
187 187
        /* Skip any unknown bytes at the end of the descriptor.
188 188
           This is for future compatibility */
189 189
        if (ape->descriptorlength > 52)
190
            url_fseek(pb, ape->descriptorlength - 52, SEEK_CUR);
190
            avio_seek(pb, ape->descriptorlength - 52, SEEK_CUR);
191 191

  
192 192
        /* Read header data */
193 193
        ape->compressiontype      = avio_rl16(pb);
......
212 212
        ape->finalframeblocks     = avio_rl32(pb);
213 213

  
214 214
        if (ape->formatflags & MAC_FORMAT_FLAG_HAS_PEAK_LEVEL) {
215
            url_fseek(pb, 4, SEEK_CUR); /* Skip the peak level */
215
            avio_seek(pb, 4, SEEK_CUR); /* Skip the peak level */
216 216
            ape->headerlength += 4;
217 217
        }
218 218

  
......
289 289
    /* try to read APE tags */
290 290
    if (!url_is_streamed(pb)) {
291 291
        ff_ape_parse_tag(s);
292
        url_fseek(pb, 0, SEEK_SET);
292
        avio_seek(pb, 0, SEEK_SET);
293 293
    }
294 294

  
295 295
    av_log(s, AV_LOG_DEBUG, "Decoding file - v%d.%02d, compression level %d\n", ape->fileversion / 1000, (ape->fileversion % 1000) / 10, ape->compressiontype);
......
342 342
    if (ape->currentframe > ape->totalframes)
343 343
        return AVERROR(EIO);
344 344

  
345
    url_fseek (s->pb, ape->frames[ape->currentframe].pos, SEEK_SET);
345
    avio_seek (s->pb, ape->frames[ape->currentframe].pos, SEEK_SET);
346 346

  
347 347
    /* Calculate how many blocks there are in this frame */
348 348
    if (ape->currentframe == (ape->totalframes - 1))

Also available in: Unified diff