libavcodec/ffv1.c:995: error: Buffer Overrun L3
  Offset: [-1, +oo] (⇐ [0, +oo] + -1) Size: 3 by call to `encode_rgb_frame`.

libavcodec/ffv1.c:978:5: Assignment
976.     FFV1Context *fs= *(void**)arg;
977.     FFV1Context *f= fs->avctx->priv_data;
978.     int width = fs->slice_width;
         ^
979.     int height= fs->slice_height;
980.     int x= fs->slice_x;

libavcodec/ffv1.c:995:9: Call
993.         encode_plane(fs, p->data[2] + cx+cy*p->linesize[2], chroma_width, chroma_height, p->linesize[2], 1);
994.     }else{
995.         encode_rgb_frame(fs, (uint32_t*)(p->data[0]) + x + y*(p->linesize[0]/4), width, height, p->linesize[0]/4);
             ^
996.     }
997.     emms_c();

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

libavcodec/ffv1.c:604:13: Call
  602.             sample[p][0][-1]= sample[p][1][0  ];
  603.             sample[p][1][ w]= sample[p][1][w-1];
  604.             encode_line(s, w, sample[p], FFMIN(p, 1), 9);
                   ^
  605.         }
  606.     }

libavcodec/ffv1.c:462:1: Parameter `w`
    460. 
    461. #if CONFIG_FFV1_ENCODER
    462. static av_always_inline int encode_line(FFV1Context *s, int w, int_fast16_t *sample[2], int plane_index, int bits){
         ^
    463.     PlaneContext * const p= &s->plane[plane_index];
    464.     RangeCoder * const c= &s->c;

libavcodec/ffv1.c:485:18: Call
    483.         int diff, context;
    484. 
    485.         context= get_context(p, sample[0]+x, sample[1]+x, sample[2]+x);
                          ^
    486.         diff= sample[0][x] - predict(sample[0]+x, sample[1]+x);
    487. 

libavcodec/ffv1.c:287:1: <Length trace>
285. }
286. 
287. static inline int get_context(PlaneContext *p, int_fast16_t *src, int_fast16_t *last, int_fast16_t *last2){
     ^
288.     const int LT= last[-1];
289.     const int  T= last[ 0];

libavcodec/ffv1.c:287:1: Parameter `*last`
      285. }
      286. 
      287. static inline int get_context(PlaneContext *p, int_fast16_t *src, int_fast16_t *last, int_fast16_t *last2){
           ^
      288.     const int LT= last[-1];
      289.     const int  T= last[ 0];

libavcodec/ffv1.c:288:19: Array access: Offset: [-1, +oo] (⇐ [0, +oo] + -1) Size: 3 by call to `encode_rgb_frame` 
      286. 
      287. static inline int get_context(PlaneContext *p, int_fast16_t *src, int_fast16_t *last, int_fast16_t *last2){
      288.     const int LT= last[-1];
                             ^
      289.     const int  T= last[ 0];
      290.     const int RT= last[ 1];
