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

libavformat/movenc.c:3198:13: 
3196.         if (st->disposition & AV_DISPOSITION_DEFAULT) {
3197.             mov->tracks[i].flags |= MOV_TRACK_ENABLED;
3198.             enabled[st->codec->codec_type]++;
                  ^
3199.         }
3200.     }

static void enable_tracks(AVFormatContext *s)
{
    MOVMuxContext *mov = s->priv_data;
    int i;
    int 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]++;
        }
    }
    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] > 1)
                mov->per_stream_grouping = 1;
            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    int 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]++;\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] > 1)\n                mov->per_stream_grouping = 1;\n            if (!enabled[i] && first[i] >= 0)\n                mov->tracks[first[i]].flags |= MOV_TRACK_ENABLED;\n            break;\n        }\n    }\n}']