cmdutils.c:810: error: Uninitialized Value
  The value read from type was never initialized.

cmdutils.c:810:21: 
808.             int i, index = strtol(spec, NULL, 0);
809.             for (i = 0; i < s->nb_streams; i++)
810.                 if (s->streams[i]->codec->codec_type == type && index-- == 0)
                         ^
811.                    return i == st->index;
812.             return 0;

int check_stream_specifier(AVFormatContext *s, AVStream *st, const char *spec)
{
    if (*spec <= '9' && *spec >= '0')
        return strtol(spec, NULL, 0) == st->index;
    else if (*spec == 'v' || *spec == 'a' || *spec == 's' || *spec == 'd') {
        enum AVMediaType type;
        switch (*spec++) {
        case 'v': type = AVMEDIA_TYPE_VIDEO;    break;
        case 'a': type = AVMEDIA_TYPE_AUDIO;    break;
        case 's': type = AVMEDIA_TYPE_SUBTITLE; break;
        case 'd': type = AVMEDIA_TYPE_DATA;     break;
        }
        if (type != st->codec->codec_type)
            return 0;
        if (*spec++ == ':') {
            int i, index = strtol(spec, NULL, 0);
            for (i = 0; i < s->nb_streams; i++)
                if (s->streams[i]->codec->codec_type == type && index-- == 0)
                   return i == st->index;
            return 0;
        }
        return 1;
    } else if (!*spec)
        return 1;
    av_log(s, AV_LOG_ERROR, "Invalid stream specifier: %s.\n", spec);
    return AVERROR(EINVAL);
}
['int check_stream_specifier(AVFormatContext *s, AVStream *st, const char *spec)\n{\n    if (*spec <= \'9\' && *spec >= \'0\')\n        return strtol(spec, NULL, 0) == st->index;\n    else if (*spec == \'v\' || *spec == \'a\' || *spec == \'s\' || *spec == \'d\') {\n        enum AVMediaType type;\n        switch (*spec++) {\n        case \'v\': type = AVMEDIA_TYPE_VIDEO;    break;\n        case \'a\': type = AVMEDIA_TYPE_AUDIO;    break;\n        case \'s\': type = AVMEDIA_TYPE_SUBTITLE; break;\n        case \'d\': type = AVMEDIA_TYPE_DATA;     break;\n        }\n        if (type != st->codec->codec_type)\n            return 0;\n        if (*spec++ == \':\') {\n            int i, index = strtol(spec, NULL, 0);\n            for (i = 0; i < s->nb_streams; i++)\n                if (s->streams[i]->codec->codec_type == type && index-- == 0)\n                   return i == st->index;\n            return 0;\n        }\n        return 1;\n    } else if (!*spec)\n        return 1;\n    av_log(s, AV_LOG_ERROR, "Invalid stream specifier: %s.\\n", spec);\n    return AVERROR(EINVAL);\n}']