libavcodec/h264_slice.c:1731: error: Buffer Overrun L1
  Offset: -8 Size: 40.

libavcodec/h264_slice.c:1714:1: <Length trace>
1712. }
1713. 
1714. static av_always_inline void fill_filter_caches_inter(const H264Context *h,
      ^
1715.                                                       H264SliceContext *sl,
1716.                                                       int mb_type, int top_xy,

libavcodec/h264_slice.c:1714:1: Parameter `sl->ref_cache[*][*]`
1712. }
1713. 
1714. static av_always_inline void fill_filter_caches_inter(const H264Context *h,
      ^
1715.                                                       H264SliceContext *sl,
1716.                                                       int mb_type, int top_xy,

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

libavcodec/h264_slice.c:1731:13: Array access: Offset: -8 Size: 40
1729.             int (*ref2frm)[64] = sl->ref2frm[h->slice_table[top_xy] & (MAX_SLICES - 1)][0] + (MB_MBAFF(sl) ? 20 : 2);
1730.             AV_COPY128(mv_dst - 1 * 8, h->cur_pic.motion_val[list][b_xy + 0]);
1731.             ref_cache[0 - 1 * 8] =
                  ^
1732.             ref_cache[1 - 1 * 8] = ref2frm[list][h->cur_pic.ref_index[list][b8_xy + 0]];
1733.             ref_cache[2 - 1 * 8] =
