Revision a2704c97 libavformat/utils.c

View differences:

libavformat/utils.c
330 330
    if(ret<0)
331 331
        return ret;
332 332

  
333
    pkt->pos= url_ftell(s);
333
    pkt->pos= avio_tell(s);
334 334

  
335 335
    ret= avio_read(s, pkt->data, size);
336 336
    if(ret<=0)
......
490 490
    }
491 491

  
492 492
    if (pb && !ic->data_offset)
493
        ic->data_offset = url_ftell(ic->pb);
493
        ic->data_offset = avio_tell(ic->pb);
494 494

  
495 495
#if FF_API_OLD_METADATA
496 496
    ff_metadata_demux_compat(ic);
......
2212 2212
    int i, count, ret, read_size, j;
2213 2213
    AVStream *st;
2214 2214
    AVPacket pkt1, *pkt;
2215
    int64_t old_offset = url_ftell(ic->pb);
2215
    int64_t old_offset = avio_tell(ic->pb);
2216 2216

  
2217 2217
    for(i=0;i<ic->nb_streams;i++) {
2218 2218
        AVCodec *codec;

Also available in: Unified diff