libavcodec/h264.c:3078: error: Buffer Overrun L1
  Offset: -1 Size: 40.

libavcodec/h264.c:3048:1: <Length trace>
3046. }
3047. 
3048. static av_always_inline void fill_filter_caches_inter(H264Context *h, MpegEncContext * const s, int mb_type, int top_xy,
      ^
3049.                                                       int left_xy[LEFT_MBS], int top_type, int left_type[LEFT_MBS], int mb_xy, int list)
3050. {

libavcodec/h264.c:3048:1: Parameter `h->ref_cache[*][*]`
3046. }
3047. 
3048. static av_always_inline void fill_filter_caches_inter(H264Context *h, MpegEncContext * const s, int mb_type, int top_xy,
      ^
3049.                                                       int left_xy[LEFT_MBS], int top_type, int left_type[LEFT_MBS], int mb_xy, int list)
3050. {

libavcodec/h264.c:3053:5: Assignment
3051.     int b_stride = h->b_stride;
3052.     int16_t (*mv_dst)[2] = &h->mv_cache[list][scan8[0]];
3053.     int8_t *ref_cache = &h->ref_cache[list][scan8[0]];
          ^
3054.     if(IS_INTER(mb_type) || IS_DIRECT(mb_type)){
3055.         if(USES_LIST(top_type, list)){

libavcodec/h264.c:3078:17: Array access: Offset: -1 Size: 40
3076.                 AV_COPY32(mv_dst - 1 +16, s->current_picture.motion_val[list][b_xy + b_stride*2]);
3077.                 AV_COPY32(mv_dst - 1 +24, s->current_picture.motion_val[list][b_xy + b_stride*3]);
3078.                 ref_cache[-1 +  0]=
                      ^
3079.                 ref_cache[-1 +  8]= ref2frm[list][s->current_picture.ref_index[list][b8_xy + 2*0]];
3080.                 ref_cache[-1 + 16]=
