libavfilter/avfilter.c:786: error: Buffer Overrun L1
  Offset added: 1024 Size: 64 by call to `av_image_copy`.

libavfilter/avfilter.c:747:1: Parameter `frame->data[*]`
745. }
746. 
747. int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
     ^
748. {
749.     int (*filter_frame)(AVFilterLink *, AVFrame *);

libavfilter/avfilter.c:786:13: Call
784.         switch (link->type) {
785.         case AVMEDIA_TYPE_VIDEO:
786.             av_image_copy(out->data, out->linesize, frame->data, frame->linesize,
                 ^
787.                           frame->format, frame->width, frame->height);
788.             break;

libavutil/imgutils.c:328:1: Parameter `**src_data`
  326. }
  327. 
  328. void av_image_copy(uint8_t *dst_data[4], int dst_linesizes[4],
       ^
  329.                    const uint8_t *src_data[4], const int src_linesizes[4],
  330.                    enum AVPixelFormat pix_fmt, int width, int height)

libavutil/imgutils.c:340:5: Call
  338.     }
  339. 
  340.     image_copy(dst_data, dst_linesizes1, src_data, src_linesizes1, pix_fmt,
           ^
  341.                width, height, image_copy_plane);
  342. }

libavutil/imgutils.c:291:1: <Length trace>
289. }
290. 
291. static void image_copy(uint8_t *dst_data[4], const ptrdiff_t dst_linesizes[4],
     ^
292.                        const uint8_t *src_data[4], const ptrdiff_t src_linesizes[4],
293.                        enum AVPixelFormat pix_fmt, int width, int height,

libavutil/imgutils.c:291:1: Parameter `**src_data`
    289. }
    290. 
    291. static void image_copy(uint8_t *dst_data[4], const ptrdiff_t dst_linesizes[4],
         ^
    292.                        const uint8_t *src_data[4], const ptrdiff_t src_linesizes[4],
    293.                        enum AVPixelFormat pix_fmt, int width, int height,

libavutil/imgutils.c:308:9: Array access: Offset added: 1024 Size: 64 by call to `av_image_copy` 
    306.                    width, height);
    307.         /* copy the palette */
    308.         memcpy(dst_data[1], src_data[1], 4*256);
                 ^
    309.     } else {
    310.         int i, planes_nb = 0;

static void image_copy(uint8_t *dst_data[4], const ptrdiff_t dst_linesizes[4],
                       const uint8_t *src_data[4], const ptrdiff_t src_linesizes[4],
                       enum AVPixelFormat pix_fmt, int width, int height,
                       void (*copy_plane)(uint8_t *, ptrdiff_t, const uint8_t *,
                                          ptrdiff_t, ptrdiff_t, int))
{
    const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
    if (!desc || desc->flags & AV_PIX_FMT_FLAG_HWACCEL)
        return;
    if (desc->flags & AV_PIX_FMT_FLAG_PAL ||
        desc->flags & AV_PIX_FMT_FLAG_PSEUDOPAL) {
        copy_plane(dst_data[0], dst_linesizes[0],
                   src_data[0], src_linesizes[0],
                   width, height);
        memcpy(dst_data[1], src_data[1], 4*256);
    } else {
        int i, planes_nb = 0;
        for (i = 0; i < desc->nb_components; i++)
            planes_nb = FFMAX(planes_nb, desc->comp[i].plane + 1);
        for (i = 0; i < planes_nb; i++) {
            int h = height;
            ptrdiff_t bwidth = av_image_get_linesize(pix_fmt, width, i);
            if (i == 1 || i == 2) {
                h = AV_CEIL_RSHIFT(height, desc->log2_chroma_h);
            }
            copy_plane(dst_data[i], dst_linesizes[i],
                       src_data[i], src_linesizes[i],
                       bwidth, h);
        }
    }
}
['int ff_filter_frame(AVFilterLink *link, AVFrame *frame)\n{\n    int (*filter_frame)(AVFilterLink *, AVFrame *);\n    AVFilterPad *dst = link->dstpad;\n    AVFrame *out = NULL;\n    int ret;\n    FF_DPRINTF_START(NULL, filter_frame);\n    ff_dlog_link(NULL, link, 1);\n    if (!(filter_frame = dst->filter_frame))\n        filter_frame = default_filter_frame;\n    if (dst->needs_writable && !av_frame_is_writable(frame)) {\n        av_log(link->dst, AV_LOG_DEBUG, "Copying data in avfilter.\\n");\n        switch (link->type) {\n        case AVMEDIA_TYPE_VIDEO:\n            out = ff_get_video_buffer(link, link->w, link->h);\n            break;\n        case AVMEDIA_TYPE_AUDIO:\n            out = ff_get_audio_buffer(link, frame->nb_samples);\n            break;\n        default:\n            ret = AVERROR(EINVAL);\n            goto fail;\n        }\n        if (!out) {\n            ret = AVERROR(ENOMEM);\n            goto fail;\n        }\n        ret = av_frame_copy_props(out, frame);\n        if (ret < 0)\n            goto fail;\n        switch (link->type) {\n        case AVMEDIA_TYPE_VIDEO:\n            av_image_copy(out->data, out->linesize, frame->data, frame->linesize,\n                          frame->format, frame->width, frame->height);\n            break;\n        case AVMEDIA_TYPE_AUDIO:\n            av_samples_copy(out->extended_data, frame->extended_data,\n                            0, 0, frame->nb_samples,\n                            av_get_channel_layout_nb_channels(frame->channel_layout),\n                            frame->format);\n            break;\n        default:\n            ret = AVERROR(EINVAL);\n            goto fail;\n        }\n        av_frame_free(&frame);\n    } else\n        out = frame;\n    return filter_frame(link, out);\nfail:\n    av_frame_free(&out);\n    av_frame_free(&frame);\n    return ret;\n}', 'void av_image_copy(uint8_t *dst_data[4], int dst_linesizes[4],\n                   const uint8_t *src_data[4], const int src_linesizes[4],\n                   enum AVPixelFormat pix_fmt, int width, int height)\n{\n    ptrdiff_t dst_linesizes1[4], src_linesizes1[4];\n    int i;\n    for (i = 0; i < 4; i++) {\n        dst_linesizes1[i] = dst_linesizes[i];\n        src_linesizes1[i] = src_linesizes[i];\n    }\n    image_copy(dst_data, dst_linesizes1, src_data, src_linesizes1, pix_fmt,\n               width, height, image_copy_plane);\n}', 'static void image_copy(uint8_t *dst_data[4], const ptrdiff_t dst_linesizes[4],\n                       const uint8_t *src_data[4], const ptrdiff_t src_linesizes[4],\n                       enum AVPixelFormat pix_fmt, int width, int height,\n                       void (*copy_plane)(uint8_t *, ptrdiff_t, const uint8_t *,\n                                          ptrdiff_t, ptrdiff_t, int))\n{\n    const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);\n    if (!desc || desc->flags & AV_PIX_FMT_FLAG_HWACCEL)\n        return;\n    if (desc->flags & AV_PIX_FMT_FLAG_PAL ||\n        desc->flags & AV_PIX_FMT_FLAG_PSEUDOPAL) {\n        copy_plane(dst_data[0], dst_linesizes[0],\n                   src_data[0], src_linesizes[0],\n                   width, height);\n        memcpy(dst_data[1], src_data[1], 4*256);\n    } else {\n        int i, planes_nb = 0;\n        for (i = 0; i < desc->nb_components; i++)\n            planes_nb = FFMAX(planes_nb, desc->comp[i].plane + 1);\n        for (i = 0; i < planes_nb; i++) {\n            int h = height;\n            ptrdiff_t bwidth = av_image_get_linesize(pix_fmt, width, i);\n            if (i == 1 || i == 2) {\n                h = AV_CEIL_RSHIFT(height, desc->log2_chroma_h);\n            }\n            copy_plane(dst_data[i], dst_linesizes[i],\n                       src_data[i], src_linesizes[i],\n                       bwidth, h);\n        }\n    }\n}']