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

libavcodec/mpegvideo_enc.c:2086:41: Call
2084. {
2085.     if (s->chroma_format == CHROMA_420) encode_mb_internal(s, motion_x, motion_y,  8, 6);
2086.     else                                encode_mb_internal(s, motion_x, motion_y, 16, 8);
                                              ^
2087. }
2088. 

libavcodec/mpegvideo_enc.c:1721:1: Array declaration
  1719. }
  1720. 
  1721. static av_always_inline void encode_mb_internal(MpegEncContext *s,
        ^
  1722.                                                 int motion_x, int motion_y,
  1723.                                                 int mb_block_height,

libavcodec/mpegvideo_enc.c:1999:25: Call
  1997.                 if (!skip_dct[i]) {
  1998.                     s->block_last_index[i] =
  1999.                         dct_quantize_refine(s, s->block[i], weight[i],
                                ^
  2000.                                             orig[i], i, s->qscale);
  2001.                 }

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

libavcodec/mpegvideo_enc.c:3683:9: Assignment
    3681. #endif
    3682.     dc += (1<<(RECON_SHIFT-1));
    3683.     for(i=0; i<64; i++){
                  ^
    3684.         rem[i]= dc - (orig[i]<<RECON_SHIFT); //FIXME  use orig dirrectly instead of copying to rem[]
    3685.     }

libavcodec/mpegvideo_enc.c:3619:1: <Length trace>
3617. }
3618. 
3619. static int dct_quantize_refine(MpegEncContext *s, //FIXME breaks denoise?
      ^
3620.                         DCTELEM *block, int16_t *weight, DCTELEM *orig,
3621.                         int n, int qscale){

libavcodec/mpegvideo_enc.c:3619:1: Parameter `*orig`
    3617. }
    3618. 
    3619. static int dct_quantize_refine(MpegEncContext *s, //FIXME breaks denoise?
          ^
    3620.                         DCTELEM *block, int16_t *weight, DCTELEM *orig,
    3621.                         int n, int qscale){

libavcodec/mpegvideo_enc.c:3684:23: Array access: Offset: [0, 70] (⇐ [0, 7] + [0, 63]) Size: 8 by call to `encode_mb_internal` 
    3682.     dc += (1<<(RECON_SHIFT-1));
    3683.     for(i=0; i<64; i++){
    3684.         rem[i]= dc - (orig[i]<<RECON_SHIFT); //FIXME  use orig dirrectly instead of copying to rem[]
                                ^
    3685.     }
    3686. #ifdef REFINE_STATS
