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

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

libavcodec/ffv1.c:604:13: Call
602.             sample[p][0][-1]= sample[p][1][0  ];
603.             sample[p][1][ w]= sample[p][1][w-1];
604.             encode_line(s, w, sample[p], FFMIN(p, 1), 9);
                 ^
605.         }
606.     }

libavcodec/ffv1.c:462:1: <Length trace>
460. 
461. #if CONFIG_FFV1_ENCODER
462. static av_always_inline int encode_line(FFV1Context *s, int w, int_fast16_t *sample[2], int plane_index, int bits){
     ^
463.     PlaneContext * const p= &s->plane[plane_index];
464.     RangeCoder * const c= &s->c;

libavcodec/ffv1.c:462:1: Parameter `*sample`
  460. 
  461. #if CONFIG_FFV1_ENCODER
  462. static av_always_inline int encode_line(FFV1Context *s, int w, int_fast16_t *sample[2], int plane_index, int bits){
       ^
  463.     PlaneContext * const p= &s->plane[plane_index];
  464.     RangeCoder * const c= &s->c;

libavcodec/ffv1.c:486:51: Array access: Offset: [1, 3] (⇐ [0, 2] + 1) Size: 3 by call to `encode_line` 
  484. 
  485.         context= get_context(p, sample[0]+x, sample[1]+x, sample[2]+x);
  486.         diff= sample[0][x] - predict(sample[0]+x, sample[1]+x);
                                                         ^
  487. 
  488.         if(context < 0){
