libavformat/utils.c:1195: error: Integer Overflow L2
  ([0, +oo] - 1):unsigned64 by call to `av_compare_mod`.

libavformat/utils.c:1192:17: Assignment
1190. 
1191.             if(genpts && next_pkt->dts != AV_NOPTS_VALUE){
1192.                 int wrap_bits = s->streams[next_pkt->stream_index]->pts_wrap_bits;
                      ^
1193.                 while(pktl && next_pkt->pts == AV_NOPTS_VALUE){
1194.                     if(   pktl->pkt.stream_index == next_pkt->stream_index

libavformat/utils.c:1195:32: Call
1193.                 while(pktl && next_pkt->pts == AV_NOPTS_VALUE){
1194.                     if(   pktl->pkt.stream_index == next_pkt->stream_index
1195.                        && (0 > av_compare_mod(next_pkt->dts, pktl->pkt.dts, 2LL << (wrap_bits - 1)))
                                     ^
1196.                        && av_compare_mod(pktl->pkt.pts, pktl->pkt.dts, 2LL << (wrap_bits - 1))) { //not b frame
1197.                         next_pkt->pts= pktl->pkt.dts;

libavutil/mathematics.c:147:1: <LHS trace>
145. }
146. 
147. int64_t av_compare_mod(uint64_t a, uint64_t b, uint64_t mod){
     ^
148.     int64_t c= (a-b) & (mod-1);
149.     if(c > (mod>>1))

libavutil/mathematics.c:147:1: Parameter `mod`
  145. }
  146. 
  147. int64_t av_compare_mod(uint64_t a, uint64_t b, uint64_t mod){
       ^
  148.     int64_t c= (a-b) & (mod-1);
  149.     if(c > (mod>>1))

libavutil/mathematics.c:148:5: Binary operation: ([0, +oo] - 1):unsigned64 by call to `av_compare_mod` 
  146. 
  147. int64_t av_compare_mod(uint64_t a, uint64_t b, uint64_t mod){
  148.     int64_t c= (a-b) & (mod-1);
           ^
  149.     if(c > (mod>>1))
  150.         c-= mod;
