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

libavcodec/avpicture.c:41:1: Parameter `src->data[*]`
39. }
40. 
41. int avpicture_layout(const AVPicture* src, enum AVPixelFormat pix_fmt,
    ^
42.                      int width, int height,
43.                      unsigned char *dest, int dest_size)

libavcodec/avpicture.c:45:12: Call
43.                      unsigned char *dest, int dest_size)
44. {
45.     return av_image_copy_to_buffer(dest, dest_size,
               ^
46.                                    src->data, src->linesize,
47.                                    pix_fmt, width, height, 1);

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. 
