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

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

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

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

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

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