libavcodec/ffv1.c:450: error: Buffer Overrun L3
  Offset: 2 Size: [2, 3] by call to `encode_line`.

libavcodec/ffv1.c:434:26: Assignment
432. static void encode_plane(FFV1Context *s, uint8_t *src, int w, int h, int stride, int plane_index){
433.     int x,y,i;
434.     const int ring_size= s->avctx->context_model ? 3 : 2;
                              ^
435.     int_fast16_t sample_buffer[ring_size][w+6], *sample[ring_size];
436.     s->run_index=0;

libavcodec/ffv1.c:434:5: Assignment
432. static void encode_plane(FFV1Context *s, uint8_t *src, int w, int h, int stride, int plane_index){
433.     int x,y,i;
434.     const int ring_size= s->avctx->context_model ? 3 : 2;
         ^
435.     int_fast16_t sample_buffer[ring_size][w+6], *sample[ring_size];
436.     s->run_index=0;

libavcodec/ffv1.c:435:57: Array declaration
433.     int x,y,i;
434.     const int ring_size= s->avctx->context_model ? 3 : 2;
435.     int_fast16_t sample_buffer[ring_size][w+6], *sample[ring_size];
                                                             ^
436.     s->run_index=0;
437. 

libavcodec/ffv1.c:450:9: Call
448.             sample[0][x]= src[x + stride*y];
449.         }
450.         encode_line(s, w, sample, plane_index, 8);
             ^
451. //STOP_TIMER("encode line")}
452.     }

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:377:59: Array access: Offset: 2 Size: [2, 3] by call to `encode_line` 
  375.         int diff, context;
  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. 
