libavcodec/rawenc.c:62: error: Buffer Overrun L1
  Offset added: 1024 Size: 64 by call to `av_image_copy_to_buffer`.

libavcodec/rawenc.c:51:1: Parameter `frame->data[*]`
49. }
50. 
51. static int raw_encode(AVCodecContext *avctx, AVPacket *pkt,
    ^
52.                       const AVFrame *frame, int *got_packet)
53. {

libavcodec/rawenc.c:62:16: Call
60.     if ((ret = ff_alloc_packet(pkt, ret)) < 0)
61.         return ret;
62.     if ((ret = av_image_copy_to_buffer(pkt->data, pkt->size,
                   ^
63.                                        frame->data, frame->linesize,
64.                                        frame->format,

libavutil/imgutils.c:345:1: <Length trace>
343. }
344. 
345. int av_image_copy_to_buffer(uint8_t *dst, int dst_size,
     ^
346.                             const uint8_t * const src_data[4],
347.                             const int src_linesize[4],

libavutil/imgutils.c:345:1: Parameter `**src_data`
  343. }
  344. 
  345. int av_image_copy_to_buffer(uint8_t *dst, int dst_size,
       ^
  346.                             const uint8_t * const src_data[4],
  347.                             const int src_linesize[4],

libavutil/imgutils.c:377:9: Array access: Offset added: 1024 Size: 64 by call to `av_image_copy_to_buffer` 
  375. 
  376.     if (desc->flags & AV_PIX_FMT_FLAG_PAL)
  377.         memcpy((unsigned char *)(((size_t)dst + 3) & ~3),
               ^
  378.                src_data[1], 256 * 4);
  379. 
