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

libavcodec/ffv1.c:898:5: Assignment
896.     FFV1Context *fs= *(void**)arg;
897.     FFV1Context *f= fs->avctx->priv_data;
898.     int width = fs->slice_width;
         ^
899.     int height= fs->slice_height;
900.     int x= fs->slice_x;

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

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

libavcodec/ffv1.c:593:13: Call
  591.             sample[p][0][-1]= sample[p][1][0  ];
  592.             sample[p][1][ w]= sample[p][1][w-1];
  593.             encode_line(s, w, sample[p], FFMIN(p, 1), 9);
                   ^
  594.         }
  595.     }

libavcodec/ffv1.c:451:1: Parameter `w`
    449. 
    450. #if CONFIG_FFV1_ENCODER
    451. static inline int encode_line(FFV1Context *s, int w, int_fast16_t *sample[2], int plane_index, int bits){
         ^
    452.     PlaneContext * const p= &s->plane[plane_index];
    453.     RangeCoder * const c= &s->c;

libavcodec/ffv1.c:474:18: Call
    472.         int diff, context;
    473. 
    474.         context= get_context(p, sample[0]+x, sample[1]+x, sample[2]+x);
                          ^
    475.         diff= sample[0][x] - predict(sample[0]+x, sample[1]+x);
    476. 

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

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

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