static void add_index_entry(AVStream *st,

                            int64_t pos, int64_t timestamp, int flags)

{

    AVIndexEntry *entries, *ie;

    

    entries = av_fast_realloc(st->index_entries,

                              &st->index_entries_allocated_size,

                              (st->nb_index_entries + 1) * 

                              sizeof(AVIndexEntry));

    if (entries) {

        st->index_entries = entries;

        ie = &entries[st->nb_index_entries++];

        ie->pos = pos;

        ie->timestamp = timestamp;

        ie->flags = flags;

    }

}

static void add_index_entry(AVStream *st,

                            int64_t pos, int64_t timestamp, int flags)

{

    AVIndexEntry *entries, *ie;

    

    entries = av_fast_realloc(st->index_entries,

                              &st->index_entries_allocated_size,

                              (st->nb_index_entries + 1) * 

                              sizeof(AVIndexEntry));

    if (entries) {

        st->index_entries = entries;

        ie = &entries[st->nb_index_entries++];

        ie->pos = pos;

        ie->timestamp = timestamp;

        ie->flags = flags;

    }

}

static void FUNC_0(AVStream *VAR_0,

                            int64_t VAR_1, int64_t VAR_2, int VAR_3)

{

    AVIndexEntry *entries, *ie;

    

    entries = av_fast_realloc(VAR_0->index_entries,

                              &VAR_0->index_entries_allocated_size,

                              (VAR_0->nb_index_entries + 1) * 

                              sizeof(AVIndexEntry));

    if (entries) {

        VAR_0->index_entries = entries;

        ie = &entries[VAR_0->nb_index_entries++];

        ie->VAR_1 = VAR_1;

        ie->VAR_2 = VAR_2;

        ie->VAR_3 = VAR_3;

    }

}

static void FUNC_0(AVStream *VAR_0,
int64_t VAR_1, int64_t VAR_2, int VAR_3)
{ AVIndexEntry *entries, *ie; entries = av_fast_realloc(VAR_0->index_entries,
&VAR_0->index_entries_allocated_size,
(VAR_0->nb_index_entries + 1) *
sizeof(AVIndexEntry)); if (entries) { VAR_0->index_entries = entries; ie = &entries[VAR_0->nb_index_entries++]; ie->VAR_1 = VAR_1; ie->VAR_2 = VAR_2; ie->VAR_3 = VAR_3; } }