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

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:1646:30: Call
1644.         if(!s->chroma_y_shift){ /* 422 */
1645.             if(!skip_dct[6]) get_visual_weight(weight[6], ptr_cb + (dct_offset>>1), wrap_c);
1646.             if(!skip_dct[7]) get_visual_weight(weight[7], ptr_cr + (dct_offset>>1), wrap_c);
                                   ^
1647.         }
1648.         memcpy(orig[0], s->block[0], sizeof(DCTELEM)*64*mb_block_count);

libavcodec/mpegvideo_enc.c:1437:9: <Offset trace>
1435.     int x, y;
1436. //FIXME optimize
1437.     for(y=0; y<8; y++){
              ^
1438.         for(x=0; x<8; x++){
1439.             int x2, y2;

libavcodec/mpegvideo_enc.c:1437:9: Assignment
  1435.     int x, y;
  1436. //FIXME optimize
  1437.     for(y=0; y<8; y++){
                ^
  1438.         for(x=0; x<8; x++){
  1439.             int x2, y2;

libavcodec/mpegvideo_enc.c:1434:1: <Length trace>
1432. }
1433. 
1434. static void get_visual_weight(int16_t *weight, uint8_t *ptr, int stride){
      ^
1435.     int x, y;
1436. //FIXME optimize

libavcodec/mpegvideo_enc.c:1434:1: Parameter `*weight`
  1432. }
  1433. 
  1434. static void get_visual_weight(int16_t *weight, uint8_t *ptr, int stride){
        ^
  1435.     int x, y;
  1436. //FIXME optimize

libavcodec/mpegvideo_enc.c:1452:13: Array access: Offset: [7, 70] (⇐ 7 + [0, 63]) Size: 8 by call to `get_visual_weight` 
  1450.                 }
  1451.             }
  1452.             weight[x + 8*y]= (36*ff_sqrt(count*sqr - sum*sum)) / count;
                    ^
  1453.         }
  1454.     }
