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

libavcodec/mpegvideo_enc.c:2390:41: Call
2388. static av_always_inline void encode_mb(MpegEncContext *s, int motion_x, int motion_y)
2389. {
2390.     if (s->chroma_format == CHROMA_420) encode_mb_internal(s, motion_x, motion_y,  8, 6);
                                              ^
2391.     else                                encode_mb_internal(s, motion_x, motion_y, 16, 8);
2392. }

libavcodec/mpegvideo_enc.c:2029:1: Array declaration
  2027. }
  2028. 
  2029. static av_always_inline void encode_mb_internal(MpegEncContext *s,
        ^
  2030.                                                 int motion_x, int motion_y,
  2031.                                                 int mb_block_height,

libavcodec/mpegvideo_enc.c:2304:25: Call
  2302.                 if (!skip_dct[i]) {
  2303.                     s->block_last_index[i] =
  2304.                         dct_quantize_refine(s, s->block[i], weight[i],
                                ^
  2305.                                             orig[i], i, s->qscale);
  2306.                 }

libavcodec/mpegvideo_enc.c:4042:9: <Offset trace>
4040. #endif
4041.     dc += (1<<(RECON_SHIFT-1));
4042.     for(i=0; i<64; i++){
              ^
4043.         rem[i] = dc - (orig[i] << RECON_SHIFT); // FIXME use orig directly instead of copying to rem[]
4044.     }

libavcodec/mpegvideo_enc.c:4042:9: Assignment
    4040. #endif
    4041.     dc += (1<<(RECON_SHIFT-1));
    4042.     for(i=0; i<64; i++){
                  ^
    4043.         rem[i] = dc - (orig[i] << RECON_SHIFT); // FIXME use orig directly instead of copying to rem[]
    4044.     }

libavcodec/mpegvideo_enc.c:3978:1: <Length trace>
3976. }
3977. 
3978. static int dct_quantize_refine(MpegEncContext *s, //FIXME breaks denoise?
      ^
3979.                         int16_t *block, int16_t *weight, int16_t *orig,
3980.                         int n, int qscale){

libavcodec/mpegvideo_enc.c:3978:1: Parameter `*orig`
    3976. }
    3977. 
    3978. static int dct_quantize_refine(MpegEncContext *s, //FIXME breaks denoise?
          ^
    3979.                         int16_t *block, int16_t *weight, int16_t *orig,
    3980.                         int n, int qscale){

libavcodec/mpegvideo_enc.c:4043:24: Array access: Offset: [0, 68] (⇐ [0, 5] + [0, 63]) Size: 8 by call to `encode_mb_internal` 
    4041.     dc += (1<<(RECON_SHIFT-1));
    4042.     for(i=0; i<64; i++){
    4043.         rem[i] = dc - (orig[i] << RECON_SHIFT); // FIXME use orig directly instead of copying to rem[]
                                 ^
    4044.     }
    4045. #ifdef REFINE_STATS
