libavcodec/ffv1.c:525: error: Buffer Overrun L2
  Offset: [1, 131] (⇐ [0, 4] + [1, 127]) Size: 5 by call to `write_quant_table`.

libavcodec/ffv1.c:509:1: Parameter `f->quant_table[*]`
507. }
508. 
509. static void write_header(FFV1Context *f){
     ^
510.     uint8_t state[CONTEXT_SIZE];
511.     int i;

libavcodec/ffv1.c:525:9: Call
523. 
524.     for(i=0; i<5; i++)
525.         write_quant_table(c, f->quant_table[i]);
             ^
526. }
527. #endif /* CONFIG_FFV1_ENCODER */

libavcodec/ffv1.c:500:9: <Offset trace>
498.     memset(state, 128, sizeof(state));
499. 
500.     for(i=1; i<128 ; i++){
             ^
501.         if(quant_table[i] != quant_table[i-1]){
502.             put_symbol(c, state, i-last-1, 0);

libavcodec/ffv1.c:500:9: Assignment
  498.     memset(state, 128, sizeof(state));
  499. 
  500.     for(i=1; i<128 ; i++){
               ^
  501.         if(quant_table[i] != quant_table[i-1]){
  502.             put_symbol(c, state, i-last-1, 0);

libavcodec/ffv1.c:494:1: <Length trace>
492. }
493. 
494. static void write_quant_table(RangeCoder *c, int16_t *quant_table){
     ^
495.     int last=0;
496.     int i;

libavcodec/ffv1.c:494:1: Parameter `*quant_table`
  492. }
  493. 
  494. static void write_quant_table(RangeCoder *c, int16_t *quant_table){
       ^
  495.     int last=0;
  496.     int i;

libavcodec/ffv1.c:501:12: Array access: Offset: [1, 131] (⇐ [0, 4] + [1, 127]) Size: 5 by call to `write_quant_table` 
  499. 
  500.     for(i=1; i<128 ; i++){
  501.         if(quant_table[i] != quant_table[i-1]){
                  ^
  502.             put_symbol(c, state, i-last-1, 0);
  503.             last= i;
