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

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

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

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

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

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