libavcodec/ffv1enc.c:818: error: Buffer Overrun L2
  Offset: [1, 130+max(2, `avctx->priv_data->quant_table_count`)] (⇐ [0, 3+max(2, `avctx->priv_data->quant_table_count`)] + [1, 127]) Size: 8 by call to `write_extradata`.

libavcodec/ffv1enc.c:734:14: Assignment
732. 
733.     if (avctx->flags & (CODEC_FLAG_PASS1 | CODEC_FLAG_PASS2)) {
734.         for (i = 0; i < s->quant_table_count; i++) {
                  ^
735.             s->rc_stat2[i] = av_mallocz(s->context_count[i] *
736.                                         sizeof(*s->rc_stat2[i]));

libavcodec/ffv1enc.c:818:9: Call
816.         return AVERROR(ENOSYS);
817. slices_ok:
818.         write_extradata(s);
             ^
819.     }
820. 

libavcodec/ffv1enc.c:427:1: Parameter `f->quant_tables[*]`
  425. }
  426. 
  427. static int write_extradata(FFV1Context *f)
       ^
  428. {
  429.     RangeCoder *const c = &f->c;

libavcodec/ffv1enc.c:467:9: Call
  465.     put_symbol(c, state, f->quant_table_count, 0);
  466.     for (i = 0; i < f->quant_table_count; i++)
  467.         write_quant_tables(c, f->quant_tables[i]);
               ^
  468. 
  469.     for (i = 0; i < f->quant_table_count; i++) {

libavcodec/ffv1enc.c:372:1: Parameter `*quant_table`
    370. }
    371. 
    372. static void write_quant_tables(RangeCoder *c,
         ^
    373.                                int16_t quant_table[MAX_CONTEXT_INPUTS][256])
    374. {

libavcodec/ffv1enc.c:377:9: Call
    375.     int i;
    376.     for (i = 0; i < 5; i++)
    377.         write_quant_table(c, quant_table[i]);
                 ^
    378. }
    379. 

libavcodec/ffv1enc.c:364:10: <Offset trace>
362.     memset(state, 128, sizeof(state));
363. 
364.     for (i = 1; i < 128; i++)
              ^
365.         if (quant_table[i] != quant_table[i - 1]) {
366.             put_symbol(c, state, i - last - 1, 0);

libavcodec/ffv1enc.c:364:10: Assignment
      362.     memset(state, 128, sizeof(state));
      363. 
      364.     for (i = 1; i < 128; i++)
                    ^
      365.         if (quant_table[i] != quant_table[i - 1]) {
      366.             put_symbol(c, state, i - last - 1, 0);

libavcodec/ffv1enc.c:357:1: <Length trace>
355. 
356. 
357. static void write_quant_table(RangeCoder *c, int16_t *quant_table)
     ^
358. {
359.     int last = 0;

libavcodec/ffv1enc.c:357:1: Parameter `*quant_table`
      355. 
      356. 
      357. static void write_quant_table(RangeCoder *c, int16_t *quant_table)
           ^
      358. {
      359.     int last = 0;

libavcodec/ffv1enc.c:365:13: Array access: Offset: [1, 130+max(2, avctx->priv_data->quant_table_count)] (⇐ [0, 3+max(2, avctx->priv_data->quant_table_count)] + [1, 127]) Size: 8 by call to `write_extradata` 
      363. 
      364.     for (i = 1; i < 128; i++)
      365.         if (quant_table[i] != quant_table[i - 1]) {
                       ^
      366.             put_symbol(c, state, i - last - 1, 0);
      367.             last = i;
