libavcodec/ffv1enc.c:917: error: Buffer Overrun L2
  Offset: [2, 8] (⇐ [0, 6] + 2) Size: 4 by call to `encode_rgb_frame`.

libavcodec/ffv1enc.c:883:9: Call
881. 
882.     if (p->key_frame)
883.         ffv1_clear_slice_state(f, fs);
             ^
884.     if (f->version > 2) {
885.         encode_slice_header(f, fs);

libavcodec/ffv1.c:257:17: Assignment
  255.             for (j = 0; j < p->context_count; j++) {
  256.                 p->vlc_state[j].drift     = 0;
  257.                 p->vlc_state[j].error_sum = 4;    //FFMAX((RANGE + 32)/64, 2);
                       ^
  258.                 p->vlc_state[j].bias      = 0;
  259.                 p->vlc_state[j].count     = 1;

libavcodec/ffv1enc.c:885:9: Call
883.         ffv1_clear_slice_state(f, fs);
884.     if (f->version > 2) {
885.         encode_slice_header(f, fs);
             ^
886.     }
887.     if (!fs->ac) {

libavcodec/ffv1enc.c:843:1: Parameter `f->picture.top_field_first`
  841. }
  842. 
  843. static void encode_slice_header(FFV1Context *f, FFV1Context *fs)
       ^
  844. {
  845.     RangeCoder *c = &fs->c;

libavcodec/ffv1enc.c:917:9: Call
915.                                p->data[1] + ps * x + y * p->linesize[1],
916.                                p->data[2] + ps * x + y * p->linesize[2] };
917.         encode_rgb_frame(fs, planes, width, height, p->linesize);
             ^
918.     }
919.     emms_c();

libavcodec/ffv1enc.c:296:1: Array declaration
  294. }
  295. 
  296. static void encode_rgb_frame(FFV1Context *s, uint8_t *src[3], int w, int h,
       ^
  297.                              int stride[3])
  298. {

libavcodec/ffv1enc.c:349:17: Call
  347.             sample[p][1][w]  = sample[p][1][w - 1];
  348.             if (lbd)
  349.                 encode_line(s, w, sample[p], (p + 1) / 2, 9);
                       ^
  350.             else
  351.                 encode_line(s, w, sample[p], (p + 1) / 2, bits + 1);

libavcodec/ffv1enc.c:170:1: <Length trace>
168. }
169. 
170. static av_always_inline int encode_line(FFV1Context *s, int w,
     ^
171.                                         int16_t *sample[3],
172.                                         int plane_index, int bits)

libavcodec/ffv1enc.c:170:1: Parameter `*sample`
    168. }
    169. 
    170. static av_always_inline int encode_line(FFV1Context *s, int w,
         ^
    171.                                         int16_t *sample[3],
    172.                                         int plane_index, int bits)

libavcodec/ffv1enc.c:196:64: Array access: Offset: [2, 8] (⇐ [0, 6] + 2) Size: 4 by call to `encode_rgb_frame` 
    194.         int diff, context;
    195. 
    196.         context = get_context(p, sample[0] + x, sample[1] + x, sample[2] + x);
                                                                        ^
    197.         diff    = sample[0][x] - predict(sample[0] + x, sample[1] + x);
    198. 
