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:2694:1: Parameter `(*ps)->nb_programs`
  2692. #endif
  2693. 
  2694. void avformat_close_input(AVFormatContext **ps)
        ^
  2695. {
  2696.     AVFormatContext *s = *ps;

libavformat/utils.c:2702:5: Call
  2700.     if (s->iformat->read_close)
  2701.         s->iformat->read_close(s);
  2702.     avformat_free_context(s);
            ^
  2703.     *ps = NULL;
  2704.     if (pb)

libavformat/utils.c:2645:1: <LHS trace>
2643. #endif
2644. 
2645. void avformat_free_context(AVFormatContext *s)
      ^
2646. {
2647.     int i;

libavformat/utils.c:2645:1: Parameter `s->nb_programs`
    2643. #endif
    2644. 
    2645. void avformat_free_context(AVFormatContext *s)
          ^
    2646. {
    2647.     int i;

libavformat/utils.c:2670:9: Binary operation: ([0, +oo] - 1):unsigned32 by call to `avformat_close_input` 
    2668.         av_free(st);
    2669.     }
    2670.     for(i=s->nb_programs-1; i>=0; i--) {
                  ^
    2671.         av_dict_free(&s->programs[i]->metadata);
    2672.         av_freep(&s->programs[i]->stream_index);
