static int dv_read_seek(AVFormatContext *s, int stream_index,

                       int64_t timestamp, int flags)

{

    RawDVContext *r   = s->priv_data;

    DVDemuxContext *c = r->dv_demux;

    int64_t offset    = dv_frame_offset(s, c, timestamp, flags);



    dv_offset_reset(c, offset / c->sys->frame_size);



    offset = avio_seek(s->pb, offset, SEEK_SET);

    return (offset < 0) ? offset : 0;

}

static int dv_read_seek(AVFormatContext *s, int stream_index,

                       int64_t timestamp, int flags)

{

    RawDVContext *r   = s->priv_data;

    DVDemuxContext *c = r->dv_demux;

    int64_t offset    = dv_frame_offset(s, c, timestamp, flags);



    dv_offset_reset(c, offset / c->sys->frame_size);



    offset = avio_seek(s->pb, offset, SEEK_SET);

    return (offset < 0) ? offset : 0;

}

    dv_offset_reset(c, offset / c->sys->frame_size);     offset = avio_seek(s->pb, offset, SEEK_SET);     return (offset < 0) ? offset : 0;
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1,

                       int64_t VAR_2, int VAR_3)

{

    RawDVContext *r   = VAR_0->priv_data;

    DVDemuxContext *c = r->dv_demux;

    int64_t offset    = dv_frame_offset(VAR_0, c, VAR_2, VAR_3);



    dv_offset_reset(c, offset / c->sys->frame_size);



    offset = avio_seek(VAR_0->pb, offset, SEEK_SET);

    return (offset < 0) ? offset : 0;

}

static int FUNC_0(AVFormatContext *VAR_0, int VAR_1,
int64_t VAR_2, int VAR_3)
{ RawDVContext *r   = VAR_0->priv_data; DVDemuxContext *c = r->dv_demux; int64_t offset    = dv_frame_offset(VAR_0, c, VAR_2, VAR_3); dv_offset_reset(c, offset / c->sys->frame_size); offset = avio_seek(VAR_0->pb, offset, SEEK_SET); return (offset < 0) ? offset : 0; }