libavfilter/vf_scale.c:127: error: Buffer Overrun L1
  Offset: -1 Size: 123 by call to `sws_isSupportedInput`.

libavfilter/vf_scale.c:126:23: Call
124.         formats = NULL;
125.         while ((desc = av_pix_fmt_desc_next(desc))) {
126.             pix_fmt = av_pix_fmt_desc_get_id(desc);
                           ^
127.             if ((sws_isSupportedInput(pix_fmt) ||
128.                  sws_isSupportedEndiannessConversion(pix_fmt))

libavutil/pixdesc.c:1619:9: Assignment
  1617.     if (desc < av_pix_fmt_descriptors ||
  1618.         desc >= av_pix_fmt_descriptors + FF_ARRAY_ELEMS(av_pix_fmt_descriptors))
  1619.         return AV_PIX_FMT_NONE;
                ^
  1620. 
  1621.     return desc - av_pix_fmt_descriptors;

libavfilter/vf_scale.c:126:13: Assignment
124.         formats = NULL;
125.         while ((desc = av_pix_fmt_desc_next(desc))) {
126.             pix_fmt = av_pix_fmt_desc_get_id(desc);
                 ^
127.             if ((sws_isSupportedInput(pix_fmt) ||
128.                  sws_isSupportedEndiannessConversion(pix_fmt))

libavfilter/vf_scale.c:127:18: Call
125.         while ((desc = av_pix_fmt_desc_next(desc))) {
126.             pix_fmt = av_pix_fmt_desc_get_id(desc);
127.             if ((sws_isSupportedInput(pix_fmt) ||
                      ^
128.                  sws_isSupportedEndiannessConversion(pix_fmt))
129.                 && (ret = ff_add_format(&formats, pix_fmt)) < 0) {

libswscale/utils.c:185:1: <Offset trace>
183. };
184. 
185. int sws_isSupportedInput(enum AVPixelFormat pix_fmt)
     ^
186. {
187.     return (unsigned)pix_fmt < AV_PIX_FMT_NB ?

libswscale/utils.c:185:1: Parameter `pix_fmt`
  183. };
  184. 
  185. int sws_isSupportedInput(enum AVPixelFormat pix_fmt)
       ^
  186. {
  187.     return (unsigned)pix_fmt < AV_PIX_FMT_NB ?

libswscale/utils.c:79:1: <Length trace>
77. } FormatEntry;
78. 
79. static const FormatEntry format_entries[AV_PIX_FMT_NB] = {
    ^
80.     [AV_PIX_FMT_YUV420P]     = { 1, 1 },
81.     [AV_PIX_FMT_YUYV422]     = { 1, 1 },

libswscale/utils.c:79:1: Array declaration
  77. } FormatEntry;
  78. 
  79. static const FormatEntry format_entries[AV_PIX_FMT_NB] = {
      ^
  80.     [AV_PIX_FMT_YUV420P]     = { 1, 1 },
  81.     [AV_PIX_FMT_YUYV422]     = { 1, 1 },

libswscale/utils.c:188:12: Array access: Offset: -1 Size: 123 by call to `sws_isSupportedInput` 
  186. {
  187.     return (unsigned)pix_fmt < AV_PIX_FMT_NB ?
  188.            format_entries[pix_fmt].is_supported_in : 0;
                  ^
  189. }
  190. 

int sws_isSupportedInput(enum AVPixelFormat pix_fmt)
{
    return (unsigned)pix_fmt < AV_PIX_FMT_NB ?
           format_entries[pix_fmt].is_supported_in : 0;
}
['static int query_formats(AVFilterContext *ctx)\n{\n    AVFilterFormats *formats;\n    enum AVPixelFormat pix_fmt;\n    int ret;\n    if (ctx->inputs[0]) {\n        const AVPixFmtDescriptor *desc = NULL;\n        formats = NULL;\n        while ((desc = av_pix_fmt_desc_next(desc))) {\n            pix_fmt = av_pix_fmt_desc_get_id(desc);\n            if ((sws_isSupportedInput(pix_fmt) ||\n                 sws_isSupportedEndiannessConversion(pix_fmt))\n                && (ret = ff_add_format(&formats, pix_fmt)) < 0) {\n                ff_formats_unref(&formats);\n                return ret;\n            }\n        }\n        ff_formats_ref(formats, &ctx->inputs[0]->out_formats);\n    }\n    if (ctx->outputs[0]) {\n        const AVPixFmtDescriptor *desc = NULL;\n        formats = NULL;\n        while ((desc = av_pix_fmt_desc_next(desc))) {\n            pix_fmt = av_pix_fmt_desc_get_id(desc);\n            if ((sws_isSupportedOutput(pix_fmt) ||\n                 sws_isSupportedEndiannessConversion(pix_fmt))\n                && (ret = ff_add_format(&formats, pix_fmt)) < 0) {\n                ff_formats_unref(&formats);\n                return ret;\n            }\n        }\n        ff_formats_ref(formats, &ctx->outputs[0]->in_formats);\n    }\n    return 0;\n}', 'enum AVPixelFormat av_pix_fmt_desc_get_id(const AVPixFmtDescriptor *desc)\n{\n    if (desc < av_pix_fmt_descriptors ||\n        desc >= av_pix_fmt_descriptors + FF_ARRAY_ELEMS(av_pix_fmt_descriptors))\n        return AV_PIX_FMT_NONE;\n    return desc - av_pix_fmt_descriptors;\n}', 'int sws_isSupportedInput(enum AVPixelFormat pix_fmt)\n{\n    return (unsigned)pix_fmt < AV_PIX_FMT_NB ?\n           format_entries[pix_fmt].is_supported_in : 0;\n}']