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

libavcodec/ffv1.c:1131:5: Assignment
1129.     FFV1Context *fs= *(void**)arg;
1130.     FFV1Context *f= fs->avctx->priv_data;
1131.     int width = fs->slice_width;
          ^
1132.     int height= fs->slice_height;
1133.     int x= fs->slice_x;

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

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: Parameter `w`
    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:18: Call
    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. 

libavcodec/ffv1.c:291:1: <Length trace>
289. }
290. 
291. static inline int get_context(PlaneContext *p, int16_t *src,
     ^
292.                               int16_t *last, int16_t *last2)
293. {

libavcodec/ffv1.c:291:1: Parameter `*last`
      289. }
      290. 
      291. static inline int get_context(PlaneContext *p, int16_t *src,
           ^
      292.                               int16_t *last, int16_t *last2)
      293. {

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