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

libavcodec/ffv1.c:627:1: Array declaration
625. }
626. 
627. static void encode_rgb_frame(FFV1Context *s, uint32_t *src, int w, int h, int stride){
     ^
628.     int x, y, p, i;
629.     const int ring_size= s->avctx->context_model ? 3 : 2;

libavcodec/ffv1.c:661:13: Call
659.             sample[p][0][-1]= sample[p][1][0  ];
660.             sample[p][1][ w]= sample[p][1][w-1];
661.             encode_line(s, w, sample[p], FFMIN(p, 1), 9);
                 ^
662.         }
663.     }

libavcodec/ffv1.c:512:1: <Length trace>
510. 
511. #if CONFIG_FFV1_ENCODER
512. static av_always_inline int encode_line(FFV1Context *s, int w,
     ^
513.                                         int16_t *sample[2],
514.                                         int plane_index, int bits)

libavcodec/ffv1.c:512:1: Parameter `*sample`
  510. 
  511. #if CONFIG_FFV1_ENCODER
  512. static av_always_inline int encode_line(FFV1Context *s, int w,
       ^
  513.                                         int16_t *sample[2],
  514.                                         int plane_index, int bits)

libavcodec/ffv1.c:538:59: Array access: Offset: [2, 4] (⇐ [0, 2] + 2) Size: 3 by call to `encode_line` 
  536.         int diff, context;
  537. 
  538.         context= get_context(p, sample[0]+x, sample[1]+x, sample[2]+x);
                                                                 ^
  539.         diff= sample[0][x] - predict(sample[0]+x, sample[1]+x);
  540. 
