libavformat/sapdec.c:55: error: Integer Overflow L2
  ([0, +oo] - 1):unsigned32 by call to `avformat_close_input`.

libavformat/sapdec.c:55:9: Call
53.     struct SAPState *sap = s->priv_data;
54.     if (sap->sdp_ctx)
55.         avformat_close_input(&sap->sdp_ctx);
            ^
56.     if (sap->ann_fd)
57.         ffurl_close(sap->ann_fd);

libavformat/utils.c:2639:1: Parameter `(*ps)->nb_programs`
  2637. }
  2638. 
  2639. void avformat_close_input(AVFormatContext **ps)
        ^
  2640. {
  2641.     AVFormatContext *s = *ps;

libavformat/utils.c:2654:5: Call
  2652.             s->iformat->read_close(s);
  2653. 
  2654.     avformat_free_context(s);
            ^
  2655. 
  2656.     *ps = NULL;

libavformat/utils.c:2595:1: <LHS trace>
2593. }
2594. 
2595. void avformat_free_context(AVFormatContext *s)
      ^
2596. {
2597.     int i;

libavformat/utils.c:2595:1: Parameter `s->nb_programs`
    2593. }
    2594. 
    2595. void avformat_free_context(AVFormatContext *s)
          ^
    2596. {
    2597.     int i;

libavformat/utils.c:2622:10: Binary operation: ([0, +oo] - 1):unsigned32 by call to `avformat_close_input` 
    2620.         av_free(st);
    2621.     }
    2622.     for (i = s->nb_programs - 1; i >= 0; i--) {
                   ^
    2623.         av_dict_free(&s->programs[i]->metadata);
    2624.         av_freep(&s->programs[i]->stream_index);
