static void av_build_index_raw(AVFormatContext *s)

{

    AVPacket pkt1, *pkt = &pkt1;

    int ret;

    AVStream *st;



    st = s->streams[0];

    av_read_frame_flush(s);

    url_fseek(&s->pb, s->data_offset, SEEK_SET);



    for(;;) {

        ret = av_read_frame(s, pkt);

        if (ret < 0)

            break;

        if (pkt->stream_index == 0 && st->parser &&

            (pkt->flags & PKT_FLAG_KEY)) {

            add_index_entry(st, st->parser->frame_offset, pkt->dts, 

                            AVINDEX_KEYFRAME);

        }

        av_free_packet(pkt);

    }

}

static void av_build_index_raw(AVFormatContext *s)

{

    AVPacket pkt1, *pkt = &pkt1;

    int ret;

    AVStream *st;



    st = s->streams[0];

    av_read_frame_flush(s);

    url_fseek(&s->pb, s->data_offset, SEEK_SET);



    for(;;) {

        ret = av_read_frame(s, pkt);

        if (ret < 0)

            break;

        if (pkt->stream_index == 0 && st->parser &&

            (pkt->flags & PKT_FLAG_KEY)) {

            add_index_entry(st, st->parser->frame_offset, pkt->dts, 

                            AVINDEX_KEYFRAME);

        }

        av_free_packet(pkt);

    }

}

static void FUNC_0(AVFormatContext *VAR_0)

{

    AVPacket pkt1, *pkt = &pkt1;

    int VAR_1;

    AVStream *st;



    st = VAR_0->streams[0];

    av_read_frame_flush(VAR_0);

    url_fseek(&VAR_0->pb, VAR_0->data_offset, SEEK_SET);



    for(;;) {

        VAR_1 = av_read_frame(VAR_0, pkt);

        if (VAR_1 < 0)

            break;

        if (pkt->stream_index == 0 && st->parser &&

            (pkt->flags & PKT_FLAG_KEY)) {

            add_index_entry(st, st->parser->frame_offset, pkt->dts, 

                            AVINDEX_KEYFRAME);

        }

        av_free_packet(pkt);

    }

}

static void FUNC_0(AVFormatContext *VAR_0)
{ AVPacket pkt1, *pkt = &pkt1; int VAR_1; AVStream *st; st = VAR_0->streams[0]; av_read_frame_flush(VAR_0); url_fseek(&VAR_0->pb, VAR_0->data_offset, SEEK_SET); for(;;) { VAR_1 = av_read_frame(VAR_0, pkt); if (VAR_1 < 0)
break; if (pkt->stream_index == 0 && st->parser &&
(pkt->flags & PKT_FLAG_KEY)) { add_index_entry(st, st->parser->frame_offset, pkt->dts,
AVINDEX_KEYFRAME); } av_free_packet(pkt); } }