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

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

libavutil/pixdesc.c:1942:9: Assignment
  1940.     if (desc < av_pix_fmt_descriptors ||
  1941.         desc >= av_pix_fmt_descriptors + FF_ARRAY_ELEMS(av_pix_fmt_descriptors))
  1942.         return AV_PIX_FMT_NONE;
                ^
  1943. 
  1944.     return desc - av_pix_fmt_descriptors;

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

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

libswscale/utils.c:209:1: <Offset trace>
207. };
208. 
209. int sws_isSupportedInput(enum AVPixelFormat pix_fmt)
     ^
210. {
211.     return (unsigned)pix_fmt < AV_PIX_FMT_NB ?

libswscale/utils.c:209:1: Parameter `pix_fmt`
  207. };
  208. 
  209. int sws_isSupportedInput(enum AVPixelFormat pix_fmt)
       ^
  210. {
  211.     return (unsigned)pix_fmt < AV_PIX_FMT_NB ?

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

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

libswscale/utils.c:212:12: Array access: Offset: -1 Size: 141 by call to `sws_isSupportedInput` 
  210. {
  211.     return (unsigned)pix_fmt < AV_PIX_FMT_NB ?
  212.            format_entries[pix_fmt].is_supported_in : 0;
                  ^
  213. }
  214. 

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}']