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

libavcodec/ffv1.c:555:1: Array declaration
553. }
554. 
555. static void encode_rgb_frame(FFV1Context *s, uint32_t *src, int w, int h, int stride){
     ^
556.     int x, y, p, i;
557.     const int ring_size= s->avctx->context_model ? 3 : 2;

libavcodec/ffv1.c:589:13: Call
587.             sample[p][0][-1]= sample[p][1][0  ];
588.             sample[p][1][ w]= sample[p][1][w-1];
589.             encode_line(s, w, sample[p], FFMIN(p, 1), 9);
                 ^
590.         }
591.     }

libavcodec/ffv1.c:440:1: <Length trace>
438. 
439. #if CONFIG_FFV1_ENCODER
440. static av_always_inline int encode_line(FFV1Context *s, int w,
     ^
441.                                         int16_t *sample[3],
442.                                         int plane_index, int bits)

libavcodec/ffv1.c:440:1: Parameter `*sample`
  438. 
  439. #if CONFIG_FFV1_ENCODER
  440. static av_always_inline int encode_line(FFV1Context *s, int w,
       ^
  441.                                         int16_t *sample[3],
  442.                                         int plane_index, int bits)

libavcodec/ffv1.c:466:59: Array access: Offset: [2, 4] (⇐ [0, 2] + 2) Size: 3 by call to `encode_line` 
  464.         int diff, context;
  465. 
  466.         context= get_context(p, sample[0]+x, sample[1]+x, sample[2]+x);
                                                                 ^
  467.         diff= sample[0][x] - predict(sample[0]+x, sample[1]+x);
  468. 
