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

libavcodec/ffv1.c:1059:5: Assignment
1057.     FFV1Context *fs= *(void**)arg;
1058.     FFV1Context *f= fs->avctx->priv_data;
1059.     int width = fs->slice_width;
          ^
1060.     int height= fs->slice_height;
1061.     int x= fs->slice_x;

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

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

libavcodec/ffv1.c:589:13: Call
  587.             sample[p][0][-1]= sample[p][1][0  ];
  588.             sample[p][1][ w]= sample[p][1][w-1];
  589.             encode_line(s, w, sample[p], FFMIN(p, 1), 9);
                   ^
  590.         }
  591.     }

libavcodec/ffv1.c:440:1: Parameter `w`
    438. 
    439. #if CONFIG_FFV1_ENCODER
    440. static av_always_inline int encode_line(FFV1Context *s, int w,
         ^
    441.                                         int16_t *sample[3],
    442.                                         int plane_index, int bits)

libavcodec/ffv1.c:466:18: Call
    464.         int diff, context;
    465. 
    466.         context= get_context(p, sample[0]+x, sample[1]+x, sample[2]+x);
                          ^
    467.         diff= sample[0][x] - predict(sample[0]+x, sample[1]+x);
    468. 

libavcodec/ffv1.c:219:1: <Length trace>
217. }
218. 
219. static inline int get_context(PlaneContext *p, int16_t *src,
     ^
220.                               int16_t *last, int16_t *last2)
221. {

libavcodec/ffv1.c:219:1: Parameter `*last`
      217. }
      218. 
      219. static inline int get_context(PlaneContext *p, int16_t *src,
           ^
      220.                               int16_t *last, int16_t *last2)
      221. {

libavcodec/ffv1.c:222:19: Array access: Offset: [-1, +oo] (⇐ [0, +oo] + -1) Size: 3 by call to `encode_rgb_frame` 
      220.                               int16_t *last, int16_t *last2)
      221. {
      222.     const int LT= last[-1];
                             ^
      223.     const int  T= last[ 0];
      224.     const int RT= last[ 1];
