libavfilter/vsrc_buffer.c:62: error: Buffer Overrun L1
  Offset added: 1024 Size: 32 by call to `av_image_copy`.

libavfilter/vsrc_buffer.c:45:1: Parameter `frame->data[*]`
43.     }
44. 
45. int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, AVFrame *frame,
    ^
46.                              int64_t pts, AVRational pixel_aspect)
47. {

libavfilter/vsrc_buffer.c:62:5: Call
60.     c->buf = avfilter_get_video_buffer(buffer_filter->outputs[0], AV_PERM_WRITE,
61.                                        c->w, c->h);
62.     av_image_copy(c->buf->data, c->buf->linesize, frame->data, frame->linesize,
        ^
63.                   c->pix_fmt, c->w, c->h);
64. 

libavutil/imgutils.c:237:1: <Length trace>
235. }
236. 
237. void av_image_copy(uint8_t *dst_data[4], int dst_linesizes[4],
     ^
238.                    const uint8_t *src_data[4], const int src_linesizes[4],
239.                    enum PixelFormat pix_fmt, int width, int height)

libavutil/imgutils.c:237:1: Parameter `**src_data`
  235. }
  236. 
  237. void av_image_copy(uint8_t *dst_data[4], int dst_linesizes[4],
       ^
  238.                    const uint8_t *src_data[4], const int src_linesizes[4],
  239.                    enum PixelFormat pix_fmt, int width, int height)

libavutil/imgutils.c:251:9: Array access: Offset added: 1024 Size: 32 by call to `av_image_copy` 
  249.                             width, height);
  250.         /* copy the palette */
  251.         memcpy(dst_data[1], src_data[1], 4*256);
               ^
  252.     } else {
  253.         int i, planes_nb = 0;

void av_image_copy(uint8_t *dst_data[4], int dst_linesizes[4],
                   const uint8_t *src_data[4], const int src_linesizes[4],
                   enum PixelFormat pix_fmt, int width, int height)
{
    const AVPixFmtDescriptor *desc = &av_pix_fmt_descriptors[pix_fmt];
    if (desc->flags & PIX_FMT_HWACCEL)
        return;
    if (desc->flags & PIX_FMT_PAL) {
        av_image_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;
            int bwidth = av_image_get_linesize(pix_fmt, width, i);
            if (i == 1 || i == 2) {
                h= -((-height)>>desc->log2_chroma_h);
            }
            av_image_copy_plane(dst_data[i], dst_linesizes[i],
                                src_data[i], src_linesizes[i],
                                bwidth, h);
        }
    }
}
['int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, AVFrame *frame,\n                             int64_t pts, AVRational pixel_aspect)\n{\n    BufferSourceContext *c = buffer_filter->priv;\n    if (c->buf) {\n        av_log(buffer_filter, AV_LOG_ERROR,\n               "Buffering several frames is not supported. "\n               "Please consume all available frames before adding a new one.\\n"\n            );\n    }\n    CHECK_PARAM_CHANGE(buffer_filter, c, frame->width, frame->height, frame->format);\n    c->buf = avfilter_get_video_buffer(buffer_filter->outputs[0], AV_PERM_WRITE,\n                                       c->w, c->h);\n    av_image_copy(c->buf->data, c->buf->linesize, frame->data, frame->linesize,\n                  c->pix_fmt, c->w, c->h);\n    avfilter_copy_frame_props(c->buf, frame);\n    c->buf->pts                    = pts;\n    c->buf->video->pixel_aspect    = pixel_aspect;\n    return 0;\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 PixelFormat pix_fmt, int width, int height)\n{\n    const AVPixFmtDescriptor *desc = &av_pix_fmt_descriptors[pix_fmt];\n    if (desc->flags & PIX_FMT_HWACCEL)\n        return;\n    if (desc->flags & PIX_FMT_PAL) {\n        av_image_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            int bwidth = av_image_get_linesize(pix_fmt, width, i);\n            if (i == 1 || i == 2) {\n                h= -((-height)>>desc->log2_chroma_h);\n            }\n            av_image_copy_plane(dst_data[i], dst_linesizes[i],\n                                src_data[i], src_linesizes[i],\n                                bwidth, h);\n        }\n    }\n}']