libavfilter/vf_scale.c:127: error: Buffer Overrun L1
  Offset: -1 Size: 129 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:1702:9: Assignment
  1700.     if (desc < av_pix_fmt_descriptors ||
  1701.         desc >= av_pix_fmt_descriptors + FF_ARRAY_ELEMS(av_pix_fmt_descriptors))
  1702.         return AV_PIX_FMT_NONE;
                ^
  1703. 
  1704.     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:190:1: <Offset trace>
188. };
189. 
190. int sws_isSupportedInput(enum AVPixelFormat pix_fmt)
     ^
191. {
192.     return (unsigned)pix_fmt < AV_PIX_FMT_NB ?

libswscale/utils.c:190:1: Parameter `pix_fmt`
  188. };
  189. 
  190. int sws_isSupportedInput(enum AVPixelFormat pix_fmt)
       ^
  191. {
  192.     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:193:12: Array access: Offset: -1 Size: 129 by call to `sws_isSupportedInput` 
  191. {
  192.     return (unsigned)pix_fmt < AV_PIX_FMT_NB ?
  193.            format_entries[pix_fmt].is_supported_in : 0;
                  ^
  194. }
  195. 

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