libavcodec/ffv1.c:617: error: Buffer Overrun L2
  Offset: [2, 4] (⇐ [0, 2] + 2) Size: 3 by call to `encode_line`.

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: <Length trace>
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:461:1: Parameter `*sample`
  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:64: Array access: Offset: [2, 4] (⇐ [0, 2] + 2) Size: 3 by call to `encode_line` 
  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. 
