libavformat/movenc.c:3093: error: Uninitialized Value
  The value read from enabled[_] was never initialized.

libavformat/movenc.c:3093:18: 
3091.         case AVMEDIA_TYPE_AUDIO:
3092.         case AVMEDIA_TYPE_SUBTITLE:
3093.             if (!enabled[i] && first[i] >= 0)
                       ^
3094.                 mov->tracks[first[i]].flags |= MOV_TRACK_ENABLED;
3095.             break;

static void enable_tracks(AVFormatContext *s)
{
    MOVMuxContext *mov = s->priv_data;
    int i;
    uint8_t enabled[AVMEDIA_TYPE_NB];
    int first[AVMEDIA_TYPE_NB];
    for (i = 0; i < AVMEDIA_TYPE_NB; i++) {
        enabled[i] = 0;
        first[i] = -1;
    }
    for (i = 0; i < s->nb_streams; i++) {
        AVStream *st = s->streams[i];
        if (st->codec->codec_type <= AVMEDIA_TYPE_UNKNOWN ||
            st->codec->codec_type >= AVMEDIA_TYPE_NB)
            continue;
        if (first[st->codec->codec_type] < 0)
            first[st->codec->codec_type] = i;
        if (st->disposition & AV_DISPOSITION_DEFAULT) {
            mov->tracks[i].flags |= MOV_TRACK_ENABLED;
            enabled[st->codec->codec_type] = 1;
        }
    }
    for (i = 0; i < AVMEDIA_TYPE_NB; i++) {
        switch (i) {
        case AVMEDIA_TYPE_VIDEO:
        case AVMEDIA_TYPE_AUDIO:
        case AVMEDIA_TYPE_SUBTITLE:
            if (!enabled[i] && first[i] >= 0)
                mov->tracks[first[i]].flags |= MOV_TRACK_ENABLED;
            break;
        }
    }
}
['static void enable_tracks(AVFormatContext *s)\n{\n    MOVMuxContext *mov = s->priv_data;\n    int i;\n    uint8_t enabled[AVMEDIA_TYPE_NB];\n    int first[AVMEDIA_TYPE_NB];\n    for (i = 0; i < AVMEDIA_TYPE_NB; i++) {\n        enabled[i] = 0;\n        first[i] = -1;\n    }\n    for (i = 0; i < s->nb_streams; i++) {\n        AVStream *st = s->streams[i];\n        if (st->codec->codec_type <= AVMEDIA_TYPE_UNKNOWN ||\n            st->codec->codec_type >= AVMEDIA_TYPE_NB)\n            continue;\n        if (first[st->codec->codec_type] < 0)\n            first[st->codec->codec_type] = i;\n        if (st->disposition & AV_DISPOSITION_DEFAULT) {\n            mov->tracks[i].flags |= MOV_TRACK_ENABLED;\n            enabled[st->codec->codec_type] = 1;\n        }\n    }\n    for (i = 0; i < AVMEDIA_TYPE_NB; i++) {\n        switch (i) {\n        case AVMEDIA_TYPE_VIDEO:\n        case AVMEDIA_TYPE_AUDIO:\n        case AVMEDIA_TYPE_SUBTITLE:\n            if (!enabled[i] && first[i] >= 0)\n                mov->tracks[first[i]].flags |= MOV_TRACK_ENABLED;\n            break;\n        }\n    }\n}']