libavcodec/h264_slice.c:1809: error: Buffer Overrun L1
  Offset: -1 Size: 40.

libavcodec/h264_slice.c:1774:1: <Length trace>
1772. }
1773. 
1774. static av_always_inline void fill_filter_caches_inter(const H264Context *h,
      ^
1775.                                                       H264SliceContext *sl,
1776.                                                       int mb_type, int top_xy,

libavcodec/h264_slice.c:1774:1: Parameter `sl->ref_cache[*][*]`
1772. }
1773. 
1774. static av_always_inline void fill_filter_caches_inter(const H264Context *h,
      ^
1775.                                                       H264SliceContext *sl,
1776.                                                       int mb_type, int top_xy,

libavcodec/h264_slice.c:1784:5: Assignment
1782.     int b_stride = h->b_stride;
1783.     int16_t(*mv_dst)[2] = &sl->mv_cache[list][scan8[0]];
1784.     int8_t *ref_cache   = &sl->ref_cache[list][scan8[0]];
          ^
1785.     if (IS_INTER(mb_type) || IS_DIRECT(mb_type)) {
1786.         if (USES_LIST(top_type, list)) {

libavcodec/h264_slice.c:1809:17: Array access: Offset: -1 Size: 40
1807.                 AV_COPY32(mv_dst - 1 + 16, h->cur_pic.motion_val[list][b_xy + b_stride * 2]);
1808.                 AV_COPY32(mv_dst - 1 + 24, h->cur_pic.motion_val[list][b_xy + b_stride * 3]);
1809.                 ref_cache[-1 +  0] =
                      ^
1810.                 ref_cache[-1 +  8] = ref2frm[h->cur_pic.ref_index[list][b8_xy + 2 * 0]];
1811.                 ref_cache[-1 + 16] =
