static void read_info_chunk(AVFormatContext *s, int64_t size)

{

    AVIOContext *pb = s->pb;

    unsigned int i;

    unsigned int nb_entries = avio_rb32(pb);

    for (i = 0; i < nb_entries; i++) {

        char key[32];

        char value[1024];

        avio_get_str(pb, INT_MAX, key, sizeof(key));

        avio_get_str(pb, INT_MAX, value, sizeof(value));

        av_dict_set(&s->metadata, key, value, 0);

    }

}

static void read_info_chunk(AVFormatContext *s, int64_t size)

{

    AVIOContext *pb = s->pb;

    unsigned int i;

    unsigned int nb_entries = avio_rb32(pb);

    for (i = 0; i < nb_entries; i++) {

        char key[32];

        char value[1024];

        avio_get_str(pb, INT_MAX, key, sizeof(key));

        avio_get_str(pb, INT_MAX, value, sizeof(value));

        av_dict_set(&s->metadata, key, value, 0);

    }

}

static void FUNC_0(AVFormatContext *VAR_0, int64_t VAR_1)

{

    AVIOContext *pb = VAR_0->pb;

    unsigned int VAR_2;

    unsigned int VAR_3 = avio_rb32(pb);

    for (VAR_2 = 0; VAR_2 < VAR_3; VAR_2++) {

        char VAR_4[32];

        char VAR_5[1024];

        avio_get_str(pb, INT_MAX, VAR_4, sizeof(VAR_4));

        avio_get_str(pb, INT_MAX, VAR_5, sizeof(VAR_5));

        av_dict_set(&VAR_0->metadata, VAR_4, VAR_5, 0);

    }

}

static void FUNC_0(AVFormatContext *VAR_0, int64_t VAR_1)
{ AVIOContext *pb = VAR_0->pb; unsigned int VAR_2; unsigned int VAR_3 = avio_rb32(pb); for (VAR_2 = 0; VAR_2 < VAR_3; VAR_2++) { char VAR_4[32]; char VAR_5[1024]; avio_get_str(pb, INT_MAX, VAR_4, sizeof(VAR_4)); avio_get_str(pb, INT_MAX, VAR_5, sizeof(VAR_5)); av_dict_set(&VAR_0->metadata, VAR_4, VAR_5, 0); } }