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

libavcodec/imgconvert.c:837:1: Parameter `src->data[*]`
835. }
836. 
837. void av_picture_copy(AVPicture *dst, const AVPicture *src,
     ^
838.                      enum PixelFormat pix_fmt, int width, int height)
839. {

libavcodec/imgconvert.c:840:5: Call
838.                      enum PixelFormat pix_fmt, int width, int height)
839. {
840.     av_picture_data_copy(dst->data, dst->linesize, src->data,
         ^
841.                          src->linesize, pix_fmt, width, height);
842. }

libavcodec/imgconvert.c:804:1: <Length trace>
802. #endif
803. 
804. void av_picture_data_copy(uint8_t *dst_data[4], int dst_linesize[4],
     ^
805.                           uint8_t *src_data[4], int src_linesize[4],
806.                           enum PixelFormat pix_fmt, int width, int height)

libavcodec/imgconvert.c:804:1: Parameter `**src_data`
  802. #endif
  803. 
  804. void av_picture_data_copy(uint8_t *dst_data[4], int dst_linesize[4],
       ^
  805.                           uint8_t *src_data[4], int src_linesize[4],
  806.                           enum PixelFormat pix_fmt, int width, int height)

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

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 = av_get_image_linesize(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 = av_get_image_linesize(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}']