libavcodec/imgconvert.c:680: error: Buffer Overrun L1
  Offset added: 1024 Size: 64 by call to `av_image_copy`.

libavcodec/imgconvert.c:677:1: Parameter `src->data[*]`
675. }
676. 
677. void av_picture_copy(AVPicture *dst, const AVPicture *src,
     ^
678.                      enum AVPixelFormat pix_fmt, int width, int height)
679. {

libavcodec/imgconvert.c:680:5: Call
678.                      enum AVPixelFormat pix_fmt, int width, int height)
679. {
680.     av_image_copy(dst->data, dst->linesize, src->data,
         ^
681.                   src->linesize, pix_fmt, width, height);
682. }

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

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

libavutil/imgutils.c:253:9: Array access: Offset added: 1024 Size: 64 by call to `av_image_copy` 
  251.                             width, height);
  252.         /* copy the palette */
  253.         memcpy(dst_data[1], src_data[1], 4*256);
               ^
  254.     } else {
  255.         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 AVPixelFormat 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 ||
        desc->flags & PIX_FMT_PSEUDOPAL) {
        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);
        }
    }
}
['void av_picture_copy(AVPicture *dst, const AVPicture *src,\n                     enum AVPixelFormat pix_fmt, int width, int height)\n{\n    av_image_copy(dst->data, dst->linesize, src->data,\n                  src->linesize, pix_fmt, width, height);\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    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        desc->flags & PIX_FMT_PSEUDOPAL) {\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}']