libavcodec/h264_slice.c:1749: error: Buffer Overrun L1
  Offset: -1 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:1749:17: Array access: Offset: -1 Size: 40
1747.                 AV_COPY32(mv_dst - 1 + 16, h->cur_pic.motion_val[list][b_xy + b_stride * 2]);
1748.                 AV_COPY32(mv_dst - 1 + 24, h->cur_pic.motion_val[list][b_xy + b_stride * 3]);
1749.                 ref_cache[-1 +  0] =
                      ^
1750.                 ref_cache[-1 +  8] = ref2frm[list][h->cur_pic.ref_index[list][b8_xy + 2 * 0]];
1751.                 ref_cache[-1 + 16] =
