Revision f59d8ff8 libavformat/mxfdec.c

View differences:

libavformat/mxfdec.c
897 897
        else if (read_child(ctx, pb, tag, size, uid) < 0)
898 898
            return -1;
899 899

  
900
        url_fseek(pb, next, SEEK_SET);
900
        avio_seek(pb, next, SEEK_SET);
901 901
    }
902 902
    if (ctx_size) ctx->type = type;
903 903
    return ctx_size ? mxf_add_metadata_set(mxf, ctx) : 0;
......
912 912
        av_log(s, AV_LOG_ERROR, "could not find header partition pack key\n");
913 913
        return -1;
914 914
    }
915
    url_fseek(s->pb, -14, SEEK_CUR);
915
    avio_seek(s->pb, -14, SEEK_CUR);
916 916
    mxf->fc = s;
917 917
    while (!url_feof(s->pb)) {
918 918
        const MXFMetadataReadTableEntry *metadata;
......
924 924
        if (IS_KLV_KEY(klv.key, mxf_encrypted_triplet_key) ||
925 925
            IS_KLV_KEY(klv.key, mxf_essence_element_key)) {
926 926
            /* FIXME avoid seek */
927
            url_fseek(s->pb, klv.offset, SEEK_SET);
927
            avio_seek(s->pb, klv.offset, SEEK_SET);
928 928
            break;
929 929
        }
930 930

  
......
1009 1009
    if (sample_time < 0)
1010 1010
        sample_time = 0;
1011 1011
    seconds = av_rescale(sample_time, st->time_base.num, st->time_base.den);
1012
    url_fseek(s->pb, (s->bit_rate * seconds) >> 3, SEEK_SET);
1012
    avio_seek(s->pb, (s->bit_rate * seconds) >> 3, SEEK_SET);
1013 1013
    av_update_cur_dts(s, st, sample_time);
1014 1014
    return 0;
1015 1015
}

Also available in: Unified diff