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

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

libavcodec/ffv1.c:574:13: Call
572.             sample[p][0][-1]= sample[p][1][0  ];
573.             sample[p][1][ w]= sample[p][1][w-1];
574.             encode_line(s, w, sample[p], FFMIN(p, 1), 9);
                 ^
575.         }
576.     }

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

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

libavcodec/ffv1.c:455:59: Array access: Offset: [2, 4] (⇐ [0, 2] + 2) Size: 3 by call to `encode_line` 
  453.         int diff, context;
  454. 
  455.         context= get_context(s, sample[0]+x, sample[1]+x, sample[2]+x);
                                                                 ^
  456.         diff= sample[0][x] - predict(sample[0]+x, sample[1]+x);
  457. 
