libavcodec/mpegvideo_enc.c:2092: error: Buffer Overrun L2
  Offset: [0, 68] (⇐ [0, 5] + [0, 63]) Size: 8 by call to `encode_mb_internal`.

libavcodec/mpegvideo_enc.c:2092:41: Call
2090. static av_always_inline void encode_mb(MpegEncContext *s, int motion_x, int motion_y)
2091. {
2092.     if (s->chroma_format == CHROMA_420) encode_mb_internal(s, motion_x, motion_y,  8, 6);
                                              ^
2093.     else                                encode_mb_internal(s, motion_x, motion_y, 16, 8);
2094. }

libavcodec/mpegvideo_enc.c:1726:1: Array declaration
  1724. }
  1725. 
  1726. static av_always_inline void encode_mb_internal(MpegEncContext *s,
        ^
  1727.                                                 int motion_x, int motion_y,
  1728.                                                 int mb_block_height,

libavcodec/mpegvideo_enc.c:2006:25: Call
  2004.                 if (!skip_dct[i]) {
  2005.                     s->block_last_index[i] =
  2006.                         dct_quantize_refine(s, s->block[i], weight[i],
                                ^
  2007.                                             orig[i], i, s->qscale);
  2008.                 }

libavcodec/mpegvideo_enc.c:3732:9: <Offset trace>
3730. #endif
3731.     dc += (1<<(RECON_SHIFT-1));
3732.     for(i=0; i<64; i++){
              ^
3733.         rem[i]= dc - (orig[i]<<RECON_SHIFT); //FIXME  use orig dirrectly instead of copying to rem[]
3734.     }

libavcodec/mpegvideo_enc.c:3732:9: Assignment
    3730. #endif
    3731.     dc += (1<<(RECON_SHIFT-1));
    3732.     for(i=0; i<64; i++){
                  ^
    3733.         rem[i]= dc - (orig[i]<<RECON_SHIFT); //FIXME  use orig dirrectly instead of copying to rem[]
    3734.     }

libavcodec/mpegvideo_enc.c:3668:1: <Length trace>
3666. }
3667. 
3668. static int dct_quantize_refine(MpegEncContext *s, //FIXME breaks denoise?
      ^
3669.                         int16_t *block, int16_t *weight, int16_t *orig,
3670.                         int n, int qscale){

libavcodec/mpegvideo_enc.c:3668:1: Parameter `*orig`
    3666. }
    3667. 
    3668. static int dct_quantize_refine(MpegEncContext *s, //FIXME breaks denoise?
          ^
    3669.                         int16_t *block, int16_t *weight, int16_t *orig,
    3670.                         int n, int qscale){

libavcodec/mpegvideo_enc.c:3733:23: Array access: Offset: [0, 68] (⇐ [0, 5] + [0, 63]) Size: 8 by call to `encode_mb_internal` 
    3731.     dc += (1<<(RECON_SHIFT-1));
    3732.     for(i=0; i<64; i++){
    3733.         rem[i]= dc - (orig[i]<<RECON_SHIFT); //FIXME  use orig dirrectly instead of copying to rem[]
                                ^
    3734.     }
    3735. #ifdef REFINE_STATS
