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

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

libavcodec/ffv1.c:593:13: Call
591.             sample[p][0][-1]= sample[p][1][0  ];
592.             sample[p][1][ w]= sample[p][1][w-1];
593.             encode_line(s, w, sample[p], FFMIN(p, 1), 9);
                 ^
594.         }
595.     }

libavcodec/ffv1.c:451:1: <Length trace>
449. 
450. #if CONFIG_FFV1_ENCODER
451. static inline int encode_line(FFV1Context *s, int w, int_fast16_t *sample[2], int plane_index, int bits){
     ^
452.     PlaneContext * const p= &s->plane[plane_index];
453.     RangeCoder * const c= &s->c;

libavcodec/ffv1.c:451:1: Parameter `*sample`
  449. 
  450. #if CONFIG_FFV1_ENCODER
  451. static inline int encode_line(FFV1Context *s, int w, int_fast16_t *sample[2], int plane_index, int bits){
       ^
  452.     PlaneContext * const p= &s->plane[plane_index];
  453.     RangeCoder * const c= &s->c;

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