libavcodec/proresenc.c:560: error: Integer Overflow L2
  ([0, +oo] - [0, 7]):unsigned32 by call to `estimate_acs`.

libavcodec/proresenc.c:560:13: Call
558. 
559.     bits  = estimate_dcs(error, td->blocks[plane], blocks_per_slice, qmat[0]);
560.     bits += estimate_acs(error, td->blocks[plane], blocks_per_slice,
                 ^
561.                          plane_size_factor, ctx->scantable.permutated, qmat);
562. 

libavcodec/proresenc.c:512:1: Global `ff_prores_ac_codebook`
  510. }
  511. 
  512. static int estimate_acs(int *error, DCTELEM *blocks, int blocks_per_slice,
       ^
  513.                         int plane_size_factor,
  514.                         const uint8_t *scan, const int16_t *qmat)

libavcodec/proresenc.c:532:25: Call
  530.             if (level) {
  531.                 abs_level = FFABS(level);
  532.                 bits += estimate_vlc(ff_prores_ac_codebook[run_cb], run);
                               ^
  533.                 bits += estimate_vlc(ff_prores_ac_codebook[lev_cb],
  534.                                      abs_level - 1) + 1;

libavcodec/proresenc.c:473:20: <LHS trace>
471.     if (val >= switch_val) {
472.         val -= switch_val - (1 << exp_order);
473.         exponent = av_log2(val);
                        ^
474. 
475.         return exponent * 2 - exp_order + switch_bits + 1;

libavcodec/proresenc.c:473:20: Call
    471.     if (val >= switch_val) {
    472.         val -= switch_val - (1 << exp_order);
    473.         exponent = av_log2(val);
                            ^
    474. 
    475.         return exponent * 2 - exp_order + switch_bits + 1;

libavutil/common.h:71:1: Global `ff_log2_tab`
      69. #endif
      70. 
      71. static av_always_inline av_const int av_log2_c(unsigned int v)
          ^
      72. {
      73.     int n = 0;

libavutil/common.h:82:5: Assignment
      80.         n += 8;
      81.     }
      82.     n += ff_log2_tab[v];
              ^
      83. 
      84.     return n;

libavutil/common.h:84:5: Assignment
      82.     n += ff_log2_tab[v];
      83. 
      84.     return n;
              ^
      85. }
      86. 

libavcodec/proresenc.c:473:9: Assignment
    471.     if (val >= switch_val) {
    472.         val -= switch_val - (1 << exp_order);
    473.         exponent = av_log2(val);
                 ^
    474. 
    475.         return exponent * 2 - exp_order + switch_bits + 1;

libavcodec/proresenc.c:459:1: <RHS trace>
457. }
458. 
459. static inline int estimate_vlc(unsigned codebook, int val)
     ^
460. {
461.     unsigned int rice_order, exp_order, switch_bits, switch_val;

libavcodec/proresenc.c:459:1: Parameter `codebook`
    457. }
    458. 
    459. static inline int estimate_vlc(unsigned codebook, int val)
         ^
    460. {
    461.     unsigned int rice_order, exp_order, switch_bits, switch_val;

libavcodec/proresenc.c:467:5: Assignment
    465.     switch_bits = (codebook & 3) + 1;
    466.     rice_order  =  codebook >> 5;       /* rice code order */
    467.     exp_order   = (codebook >> 2) & 7;  /* exp golomb code order */
             ^
    468. 
    469.     switch_val  = switch_bits << rice_order;

libavcodec/proresenc.c:475:9: Binary operation: ([0, +oo] - [0, 7]):unsigned32 by call to `estimate_acs` 
    473.         exponent = av_log2(val);
    474. 
    475.         return exponent * 2 - exp_order + switch_bits + 1;
                 ^
    476.     } else {
    477.         return (val >> rice_order) + rice_order + 1;
