libavformat/nutdec.c:532: error: Uninitialized Value
  The value read from *event_flags was never initialized.

libavformat/nutdec.c:532:17: 
530.             if (metadata && av_strcasecmp(name, "Uses") &&
531.                 av_strcasecmp(name, "Depends") && av_strcasecmp(name, "Replaces")) {
532.                 *event_flags |= metadata_flag;
                     ^
533.                 av_dict_set(metadata, name, str_value, 0);
534.             }

static int decode_info_header(NUTContext *nut)
{
    AVFormatContext *s = nut->avf;
    AVIOContext *bc    = s->pb;
    uint64_t tmp, chapter_start, chapter_len;
    unsigned int stream_id_plus1, count;
    int chapter_id, i;
    int64_t value, end;
    char name[256], str_value[1024], type_str[256];
    const char *type;
    int *event_flags;
    AVChapter *chapter      = NULL;
    AVStream *st            = NULL;
    AVDictionary **metadata = NULL;
    int metadata_flag       = 0;
    end  = get_packetheader(nut, bc, 1, INFO_STARTCODE);
    end += avio_tell(bc);
    GET_V(stream_id_plus1, tmp <= s->nb_streams);
    chapter_id    = get_s(bc);
    chapter_start = ffio_read_varlen(bc);
    chapter_len   = ffio_read_varlen(bc);
    count         = ffio_read_varlen(bc);
    if (chapter_id && !stream_id_plus1) {
        int64_t start = chapter_start / nut->time_base_count;
        chapter = avpriv_new_chapter(s, chapter_id,
                                     nut->time_base[chapter_start %
                                                    nut->time_base_count],
                                     start, start + chapter_len, NULL);
        metadata = &chapter->metadata;
    } else if (stream_id_plus1) {
        st       = s->streams[stream_id_plus1 - 1];
        metadata = &st->metadata;
        event_flags = &st->event_flags;
        metadata_flag = AVSTREAM_EVENT_FLAG_METADATA_UPDATED;
    } else {
        metadata = &s->metadata;
        event_flags = &s->event_flags;
        metadata_flag = AVFMT_EVENT_FLAG_METADATA_UPDATED;
    }
    for (i = 0; i < count; i++) {
        get_str(bc, name, sizeof(name));
        value = get_s(bc);
        if (value == -1) {
            type = "UTF-8";
            get_str(bc, str_value, sizeof(str_value));
        } else if (value == -2) {
            get_str(bc, type_str, sizeof(type_str));
            type = type_str;
            get_str(bc, str_value, sizeof(str_value));
        } else if (value == -3) {
            type  = "s";
            value = get_s(bc);
        } else if (value == -4) {
            type  = "t";
            value = ffio_read_varlen(bc);
        } else if (value < -4) {
            type = "r";
            get_s(bc);
        } else {
            type = "v";
        }
        if (stream_id_plus1 > s->nb_streams) {
            av_log(s, AV_LOG_ERROR, "invalid stream id for info packet\n");
            continue;
        }
        if (!strcmp(type, "UTF-8")) {
            if (chapter_id == 0 && !strcmp(name, "Disposition")) {
                set_disposition_bits(s, str_value, stream_id_plus1 - 1);
                continue;
            }
            if (metadata && av_strcasecmp(name, "Uses") &&
                av_strcasecmp(name, "Depends") && av_strcasecmp(name, "Replaces")) {
                *event_flags |= metadata_flag;
                av_dict_set(metadata, name, str_value, 0);
            }
        }
    }
    if (skip_reserved(bc, end) || ffio_get_checksum(bc)) {
        av_log(s, AV_LOG_ERROR, "info header checksum mismatch\n");
        return AVERROR_INVALIDDATA;
    }
    return 0;
}
['static int decode_info_header(NUTContext *nut)\n{\n    AVFormatContext *s = nut->avf;\n    AVIOContext *bc    = s->pb;\n    uint64_t tmp, chapter_start, chapter_len;\n    unsigned int stream_id_plus1, count;\n    int chapter_id, i;\n    int64_t value, end;\n    char name[256], str_value[1024], type_str[256];\n    const char *type;\n    int *event_flags;\n    AVChapter *chapter      = NULL;\n    AVStream *st            = NULL;\n    AVDictionary **metadata = NULL;\n    int metadata_flag       = 0;\n    end  = get_packetheader(nut, bc, 1, INFO_STARTCODE);\n    end += avio_tell(bc);\n    GET_V(stream_id_plus1, tmp <= s->nb_streams);\n    chapter_id    = get_s(bc);\n    chapter_start = ffio_read_varlen(bc);\n    chapter_len   = ffio_read_varlen(bc);\n    count         = ffio_read_varlen(bc);\n    if (chapter_id && !stream_id_plus1) {\n        int64_t start = chapter_start / nut->time_base_count;\n        chapter = avpriv_new_chapter(s, chapter_id,\n                                     nut->time_base[chapter_start %\n                                                    nut->time_base_count],\n                                     start, start + chapter_len, NULL);\n        metadata = &chapter->metadata;\n    } else if (stream_id_plus1) {\n        st       = s->streams[stream_id_plus1 - 1];\n        metadata = &st->metadata;\n        event_flags = &st->event_flags;\n        metadata_flag = AVSTREAM_EVENT_FLAG_METADATA_UPDATED;\n    } else {\n        metadata = &s->metadata;\n        event_flags = &s->event_flags;\n        metadata_flag = AVFMT_EVENT_FLAG_METADATA_UPDATED;\n    }\n    for (i = 0; i < count; i++) {\n        get_str(bc, name, sizeof(name));\n        value = get_s(bc);\n        if (value == -1) {\n            type = "UTF-8";\n            get_str(bc, str_value, sizeof(str_value));\n        } else if (value == -2) {\n            get_str(bc, type_str, sizeof(type_str));\n            type = type_str;\n            get_str(bc, str_value, sizeof(str_value));\n        } else if (value == -3) {\n            type  = "s";\n            value = get_s(bc);\n        } else if (value == -4) {\n            type  = "t";\n            value = ffio_read_varlen(bc);\n        } else if (value < -4) {\n            type = "r";\n            get_s(bc);\n        } else {\n            type = "v";\n        }\n        if (stream_id_plus1 > s->nb_streams) {\n            av_log(s, AV_LOG_ERROR, "invalid stream id for info packet\\n");\n            continue;\n        }\n        if (!strcmp(type, "UTF-8")) {\n            if (chapter_id == 0 && !strcmp(name, "Disposition")) {\n                set_disposition_bits(s, str_value, stream_id_plus1 - 1);\n                continue;\n            }\n            if (metadata && av_strcasecmp(name, "Uses") &&\n                av_strcasecmp(name, "Depends") && av_strcasecmp(name, "Replaces")) {\n                *event_flags |= metadata_flag;\n                av_dict_set(metadata, name, str_value, 0);\n            }\n        }\n    }\n    if (skip_reserved(bc, end) || ffio_get_checksum(bc)) {\n        av_log(s, AV_LOG_ERROR, "info header checksum mismatch\\n");\n        return AVERROR_INVALIDDATA;\n    }\n    return 0;\n}']