libavcodec/ffv1.c:1143: error: Buffer Overrun L3
  Offset: [-1, +oo] (⇐ [0, +oo] + -1) Size: 3 by call to `encode_rgb_frame`.

libavcodec/ffv1.c:1123:5: Assignment
1121.     FFV1Context *fs  = *(void **)arg;
1122.     FFV1Context *f   = fs->avctx->priv_data;
1123.     int width        = fs->slice_width;
          ^
1124.     int height       = fs->slice_height;
1125.     int x            = fs->slice_x;

libavcodec/ffv1.c:1143:9: Call
1141.                      chroma_width, chroma_height, p->linesize[2], 1);
1142.     } else {
1143.         encode_rgb_frame(fs, (uint32_t *)(p->data[0]) +
              ^
1144.                          x + y * (p->linesize[0] / 4),
1145.                          width, height, p->linesize[0] / 4);

libavcodec/ffv1.c:582:1: Array declaration
  580. }
  581. 
  582. static void encode_rgb_frame(FFV1Context *s, uint32_t *src, int w, int h,
       ^
  583.                              int stride)
  584. {

libavcodec/ffv1.c:617:13: Call
  615.             sample[p][0][-1] = sample[p][1][0];
  616.             sample[p][1][w]  = sample[p][1][w - 1];
  617.             encode_line(s, w, sample[p], FFMIN(p, 1), 9);
                   ^
  618.         }
  619.     }

libavcodec/ffv1.c:461:1: Parameter `w`
    459. 
    460. #if CONFIG_FFV1_ENCODER
    461. static av_always_inline int encode_line(FFV1Context *s, int w,
         ^
    462.                                         int16_t *sample[3],
    463.                                         int plane_index, int bits)

libavcodec/ffv1.c:487:19: Call
    485.         int diff, context;
    486. 
    487.         context = get_context(p, sample[0] + x, sample[1] + x, sample[2] + x);
                           ^
    488.         diff    = sample[0][x] - predict(sample[0] + x, sample[1] + x);
    489. 

libavcodec/ffv1.c:220:1: <Length trace>
218. }
219. 
220. static inline int get_context(PlaneContext *p, int16_t *src,
     ^
221.                               int16_t *last, int16_t *last2)
222. {

libavcodec/ffv1.c:220:1: Parameter `*last`
      218. }
      219. 
      220. static inline int get_context(PlaneContext *p, int16_t *src,
           ^
      221.                               int16_t *last, int16_t *last2)
      222. {

libavcodec/ffv1.c:223:20: Array access: Offset: [-1, +oo] (⇐ [0, +oo] + -1) Size: 3 by call to `encode_rgb_frame` 
      221.                               int16_t *last, int16_t *last2)
      222. {
      223.     const int LT = last[-1];
                              ^
      224.     const int T  = last[0];
      225.     const int RT = last[1];
