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

libavcodec/mpegvideo_enc.c:1754:41: Call
1752. {
1753.     if (s->chroma_format == CHROMA_420) encode_mb_internal(s, motion_x, motion_y,  8, 6);
1754.     else                                encode_mb_internal(s, motion_x, motion_y, 16, 8);
                                              ^
1755. }
1756. 

libavcodec/mpegvideo_enc.c:1457:1: Array declaration
  1455. }
  1456. 
  1457. static av_always_inline void encode_mb_internal(MpegEncContext *s, int motion_x, int motion_y, int mb_block_height, int mb_block_count)
        ^
  1458. {
  1459.     int16_t weight[8][64];

libavcodec/mpegvideo_enc.c:1668:46: Call
  1666.             for(i=0;i<mb_block_count;i++) {
  1667.                 if(!skip_dct[i]){
  1668.                     s->block_last_index[i] = dct_quantize_refine(s, s->block[i], weight[i], orig[i], i, s->qscale);
                                                     ^
  1669.                 }
  1670.             }

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

libavcodec/mpegvideo_enc.c:3349:9: Assignment
    3347. #endif
    3348.     dc += (1<<(RECON_SHIFT-1));
    3349.     for(i=0; i<64; i++){
                  ^
    3350.         rem[i]= dc - (orig[i]<<RECON_SHIFT); //FIXME  use orig dirrectly instead of copying to rem[]
    3351.     }

libavcodec/mpegvideo_enc.c:3282:1: <Length trace>
3280. }
3281. 
3282. static int dct_quantize_refine(MpegEncContext *s, //FIXME breaks denoise?
      ^
3283.                         DCTELEM *block, int16_t *weight, DCTELEM *orig,
3284.                         int n, int qscale){

libavcodec/mpegvideo_enc.c:3282:1: Parameter `*orig`
    3280. }
    3281. 
    3282. static int dct_quantize_refine(MpegEncContext *s, //FIXME breaks denoise?
          ^
    3283.                         DCTELEM *block, int16_t *weight, DCTELEM *orig,
    3284.                         int n, int qscale){

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