libavcodec/motion_est.c:794: error: Buffer Overrun L1
  Offset: [8, 11] (⇐ [0, 3] + 8) Size: 4 by call to `epzs_motion_search4`.

libavcodec/motion_est.c:758:9: Assignment
756.     init_mv4_ref(c);
757. 
758.     for(block=0; block<4; block++){
             ^
759.         int mx4, my4;
760.         int pred_x4, pred_y4;

libavcodec/motion_est.c:794:17: Call
792.         P_MV1[1]= my;
793. 
794.         dmin4 = epzs_motion_search4(s, &mx4, &my4, P, block, block, s->p_mv_table, (1<<16)>>shift);
                     ^
795. 
796.         dmin4= c->sub_motion_search(s, &mx4, &my4, dmin4, block, block, size, h);

libavcodec/motion_est_template.c:1131:1: Parameter `ref_index`
  1129. }
  1130. 
  1131. static int epzs_motion_search4(MpegEncContext * s,
        ^
  1132.                              int *mx_ptr, int *my_ptr, int P[10][2],
  1133.                              int src_index, int ref_index, int16_t (*last_mv)[2],

libavcodec/motion_est_template.c:1159:9: Call
  1157.     /* first line */
  1158.     if (s->first_slice_line) {
  1159.         CHECK_MV(P_LEFT[0]>>shift, P_LEFT[1]>>shift)
                ^
  1160.         CHECK_CLIPPED_MV((last_mv[ref_mv_xy][0]*ref_mv_scale + (1<<15))>>16,
  1161.                         (last_mv[ref_mv_xy][1]*ref_mv_scale + (1<<15))>>16)

libavcodec/motion_est.c:108:1: <Length trace>
106.     against a proposed motion-compensated prediction of that block
107.  */
108. static av_always_inline int cmp(MpegEncContext *s, const int x, const int y, const int subx, const int suby,
     ^
109.                       const int size, const int h, int ref_index, int src_index,
110.                       me_cmp_func cmp_func, me_cmp_func chroma_cmp_func, const int flags){

libavcodec/motion_est.c:108:1: Parameter `ref_index`
    106.     against a proposed motion-compensated prediction of that block
    107.  */
    108. static av_always_inline int cmp(MpegEncContext *s, const int x, const int y, const int subx, const int suby,
         ^
    109.                       const int size, const int h, int ref_index, int src_index,
    110.                       me_cmp_func cmp_func, me_cmp_func chroma_cmp_func, const int flags){

libavcodec/motion_est.c:119:5: Assignment
    117.     const int hx= subx + (x<<(1+qpel));
    118.     const int hy= suby + (y<<(1+qpel));
    119.     uint8_t * const * const ref= c->ref[ref_index];
             ^
    120.     uint8_t * const * const src= c->src[src_index];
    121.     int d;

libavcodec/motion_est.c:142:50: Array access: Offset: [8, 11] (⇐ [0, 3] + 8) Size: 4 by call to `epzs_motion_search4` 
    140.                     if(qpel){
    141.                         c->qpel_put[1][fxy](dst, ref[0] + (fx>>2) + (fy>>2)*stride, stride);
    142.                         c->qpel_avg[1][bxy](dst, ref[8] + (bx>>2) + (by>>2)*stride, stride);
                                                          ^
    143.                     }else{
    144.                         c->hpel_put[1][fxy](dst, ref[0] + (fx>>1) + (fy>>1)*stride, stride, 8);
