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

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

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

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

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

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