static int mxf_read_seek(AVFormatContext *s, int stream_index, int64_t sample_time, int flags)

{

    AVStream *st = s->streams[stream_index];

    int64_t seconds;



    if (!s->bit_rate)

        return AVERROR_INVALIDDATA;

    if (sample_time < 0)

        sample_time = 0;

    seconds = av_rescale(sample_time, st->time_base.num, st->time_base.den);

    avio_seek(s->pb, (s->bit_rate * seconds) >> 3, SEEK_SET);

    ff_update_cur_dts(s, st, sample_time);

    return 0;

}

static int mxf_read_seek(AVFormatContext *s, int stream_index, int64_t sample_time, int flags)

{

    AVStream *st = s->streams[stream_index];

    int64_t seconds;



    if (!s->bit_rate)

        return AVERROR_INVALIDDATA;

    if (sample_time < 0)

        sample_time = 0;

    seconds = av_rescale(sample_time, st->time_base.num, st->time_base.den);

    avio_seek(s->pb, (s->bit_rate * seconds) >> 3, SEEK_SET);

    ff_update_cur_dts(s, st, sample_time);

    return 0;

}

    avio_seek(s->pb, (s->bit_rate * seconds) >> 3, SEEK_SET);
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int VAR_3)

{

    AVStream *st = VAR_0->streams[VAR_1];

    int64_t seconds;



    if (!VAR_0->bit_rate)

        return AVERROR_INVALIDDATA;

    if (VAR_2 < 0)

        VAR_2 = 0;

    seconds = av_rescale(VAR_2, st->time_base.num, st->time_base.den);

    avio_seek(VAR_0->pb, (VAR_0->bit_rate * seconds) >> 3, SEEK_SET);

    ff_update_cur_dts(VAR_0, st, VAR_2);

    return 0;

}

static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int VAR_3)
{ AVStream *st = VAR_0->streams[VAR_1]; int64_t seconds; if (!VAR_0->bit_rate)
return AVERROR_INVALIDDATA; if (VAR_2 < 0)
VAR_2 = 0; seconds = av_rescale(VAR_2, st->time_base.num, st->time_base.den); avio_seek(VAR_0->pb, (VAR_0->bit_rate * seconds) >> 3, SEEK_SET); ff_update_cur_dts(VAR_0, st, VAR_2); return 0; }