Revision f59d8ff8 libavformat/seek.c

View differences:

libavformat/seek.c
313 313
    step = s->pb->buffer_size;
314 314
    curpos = FFMAX(pos - step / 2, 0);
315 315
    for (;;) {
316
        url_fseek(s->pb, curpos, SEEK_SET);
316
        avio_seek(s->pb, curpos, SEEK_SET);
317 317
        search_hi_lo_keyframes(s,
318 318
                               ts, time_base,
319 319
                               flags,
......
385 385
        }
386 386
    }
387 387

  
388
    url_fseek(s->pb, pos, SEEK_SET);
388
    avio_seek(s->pb, pos, SEEK_SET);
389 389
    av_free(sync);
390 390
    return pos;
391 391
}
......
456 456
    if (!state)
457 457
        return;
458 458

  
459
    url_fseek(s->pb, state->fpos, SEEK_SET);
459
    avio_seek(s->pb, state->fpos, SEEK_SET);
460 460

  
461 461
    // copy context structures
462 462
    s->cur_st                           = state->cur_st;

Also available in: Unified diff