Revision 384c9c2f libavformat/gxf.c

View differences:

libavformat/gxf.c
396 396
    READ_ONE();
397 397
    if (tmp != 1)
398 398
        goto start;
399
    last_pos = url_ftell(pb);
399
    last_pos = avio_tell(pb);
400 400
    if (avio_seek(pb, -5, SEEK_CUR) < 0)
401 401
        goto out;
402 402
    if (!parse_packet_header(pb, &type, &len) || type != PKT_MEDIA) {
......
407 407
    avio_r8(pb);
408 408
    cur_track = avio_r8(pb);
409 409
    cur_timestamp = avio_rb32(pb);
410
    last_found_pos = url_ftell(pb) - 16 - 6;
410
    last_found_pos = avio_tell(pb) - 16 - 6;
411 411
    if ((track >= 0 && track != cur_track) || (timestamp >= 0 && timestamp > cur_timestamp)) {
412 412
        if (avio_seek(pb, last_pos, SEEK_SET) >= 0)
413 413
            goto start;
......
511 511
    if (avio_seek(pb, *pos, SEEK_SET) < 0)
512 512
        return AV_NOPTS_VALUE;
513 513
    res = gxf_resync_media(s, pos_limit - *pos, -1, -1);
514
    *pos = url_ftell(pb);
514
    *pos = avio_tell(pb);
515 515
    return res;
516 516
}
517 517

  

Also available in: Unified diff