Revision f59d8ff8 libavformat/rpl.c

View differences:

libavformat/rpl.c
250 250
    error |= read_line(pb, line, sizeof(line));  // offset to key frame list
251 251

  
252 252
    // Read the index
253
    url_fseek(pb, chunk_catalog_offset, SEEK_SET);
253
    avio_seek(pb, chunk_catalog_offset, SEEK_SET);
254 254
    total_audio_size = 0;
255 255
    for (i = 0; i < number_of_chunks; i++) {
256 256
        int64_t offset, video_size, audio_size;
......
292 292
    index_entry = &stream->index_entries[rpl->chunk_number];
293 293

  
294 294
    if (rpl->frame_in_part == 0)
295
        if (url_fseek(pb, index_entry->pos, SEEK_SET) < 0)
295
        if (avio_seek(pb, index_entry->pos, SEEK_SET) < 0)
296 296
            return AVERROR(EIO);
297 297

  
298 298
    if (stream->codec->codec_type == AVMEDIA_TYPE_VIDEO &&
......
303 303

  
304 304
        frame_flags = avio_rl32(pb);
305 305
        frame_size = avio_rl32(pb);
306
        if (url_fseek(pb, -8, SEEK_CUR) < 0)
306
        if (avio_seek(pb, -8, SEEK_CUR) < 0)
307 307
            return AVERROR(EIO);
308 308

  
309 309
        ret = av_get_packet(pb, pkt, frame_size);

Also available in: Unified diff