libavcodec/imgconvert.c:884: error: Buffer Overrun L1
  Offset added: 1024 Size: 32 by call to `av_picture_data_copy`.

libavcodec/imgconvert.c:881:1: Parameter `src->data[*]`
879. }
880. 
881. void av_picture_copy(AVPicture *dst, const AVPicture *src,
     ^
882.                      enum PixelFormat pix_fmt, int width, int height)
883. {

libavcodec/imgconvert.c:884:5: Call
882.                      enum PixelFormat pix_fmt, int width, int height)
883. {
884.     av_picture_data_copy(dst->data, dst->linesize, src->data,
         ^
885.                          src->linesize, pix_fmt, width, height);
886. }

libavcodec/imgconvert.c:848:1: <Length trace>
846. }
847. 
848. void av_picture_data_copy(uint8_t *dst_data[4], int dst_linesize[4],
     ^
849.                           uint8_t *src_data[4], int src_linesize[4],
850.                           enum PixelFormat pix_fmt, int width, int height)

libavcodec/imgconvert.c:848:1: Parameter `**src_data`
  846. }
  847. 
  848. void av_picture_data_copy(uint8_t *dst_data[4], int dst_linesize[4],
       ^
  849.                           uint8_t *src_data[4], int src_linesize[4],
  850.                           enum PixelFormat pix_fmt, int width, int height)

libavcodec/imgconvert.c:876:9: Array access: Offset added: 1024 Size: 32 by call to `av_picture_data_copy` 
  874.                           width, height);
  875.         /* copy the palette */
  876.         memcpy(dst_data[1], src_data[1], 4*256);
               ^
  877.         break;
  878.     }

void av_picture_data_copy(uint8_t *dst_data[4], int dst_linesize[4],
                          uint8_t *src_data[4], int src_linesize[4],
                          enum PixelFormat pix_fmt, int width, int height)
{
    int i;
    const PixFmtInfo *pf = &pix_fmt_info[pix_fmt];
    const AVPixFmtDescriptor *desc = &av_pix_fmt_descriptors[pix_fmt];
    switch(pf->pixel_type) {
    case FF_PIXEL_PACKED:
    case FF_PIXEL_PLANAR:
        for(i = 0; i < pf->nb_channels; i++) {
            int h;
            int bwidth = ff_get_plane_bytewidth(pix_fmt, width, i);
            h = height;
            if (i == 1 || i == 2) {
                h= -((-height)>>desc->log2_chroma_h);
            }
            ff_img_copy_plane(dst_data[i], dst_linesize[i],
                              src_data[i], src_linesize[i],
                              bwidth, h);
        }
        break;
    case FF_PIXEL_PALETTE:
        ff_img_copy_plane(dst_data[0], dst_linesize[0],
                          src_data[0], src_linesize[0],
                          width, height);
        memcpy(dst_data[1], src_data[1], 4*256);
        break;
    }
}
['void av_picture_copy(AVPicture *dst, const AVPicture *src,\n                     enum PixelFormat pix_fmt, int width, int height)\n{\n    av_picture_data_copy(dst->data, dst->linesize, src->data,\n                         src->linesize, pix_fmt, width, height);\n}', 'void av_picture_data_copy(uint8_t *dst_data[4], int dst_linesize[4],\n                          uint8_t *src_data[4], int src_linesize[4],\n                          enum PixelFormat pix_fmt, int width, int height)\n{\n    int i;\n    const PixFmtInfo *pf = &pix_fmt_info[pix_fmt];\n    const AVPixFmtDescriptor *desc = &av_pix_fmt_descriptors[pix_fmt];\n    switch(pf->pixel_type) {\n    case FF_PIXEL_PACKED:\n    case FF_PIXEL_PLANAR:\n        for(i = 0; i < pf->nb_channels; i++) {\n            int h;\n            int bwidth = ff_get_plane_bytewidth(pix_fmt, width, i);\n            h = height;\n            if (i == 1 || i == 2) {\n                h= -((-height)>>desc->log2_chroma_h);\n            }\n            ff_img_copy_plane(dst_data[i], dst_linesize[i],\n                              src_data[i], src_linesize[i],\n                              bwidth, h);\n        }\n        break;\n    case FF_PIXEL_PALETTE:\n        ff_img_copy_plane(dst_data[0], dst_linesize[0],\n                          src_data[0], src_linesize[0],\n                          width, height);\n        memcpy(dst_data[1], src_data[1], 4*256);\n        break;\n    }\n}']