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

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

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

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

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

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