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

libavcodec/ffv1.c:459:60: Array declaration
457.     int x, y, p, i;
458.     const int ring_size= s->avctx->context_model ? 3 : 2;
459.     int_fast16_t sample_buffer[3][ring_size][w+6], *sample[3][ring_size];
                                                                ^
460.     s->run_index=0;
461. 

libavcodec/ffv1.c:490:13: Call
488.             sample[p][0][-1]= sample[p][1][0  ];
489.             sample[p][1][ w]= sample[p][1][w-1];
490.             encode_line(s, w, sample[p], FFMIN(p, 1), 9);
                 ^
491.         }
492.     }

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

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

libavcodec/ffv1.c:379:51: Array access: Offset: [1, 3] (⇐ [0, 2] + 1) Size: 3 by call to `encode_line` 
  377. 
  378.         context= get_context(s, sample[0]+x, sample[1]+x, sample[2]+x);
  379.         diff= sample[0][x] - predict(sample[0]+x, sample[1]+x);
                                                         ^
  380. 
  381.         if(context < 0){
