ffserver.c:3382: error: Integer Overflow L2
  ([0, +oo] - 1):unsigned32 by call to `av_close_input_file`.

ffserver.c:3363:33: Unknown value from: strcmp
3361.             /* open stream */
3362.             stream->ap_in = av_mallocz(sizeof(AVFormatParameters));
3363.             if (stream->fmt && !strcmp(stream->fmt->name, "rtp")) {
                                      ^
3364.                 /* specific case : if transport stream output to RTP,
3365.                    we use a raw transport stream reader */

ffserver.c:3382:21: Call
3380.                     http_log("Could not find codec parameters from '%s'\n",
3381.                              stream->feed_filename);
3382.                     av_close_input_file(infile);
                          ^
3383.                     goto fail;
3384.                 }

libavformat/utils.c:2237:1: Parameter `s->nb_programs`
  2235. }
  2236. 
  2237. void av_close_input_file(AVFormatContext *s)
        ^
  2238. {
  2239.     ByteIOContext *pb = s->iformat->flags & AVFMT_NOFILE ? NULL : s->pb;

libavformat/utils.c:2240:5: Call
  2238. {
  2239.     ByteIOContext *pb = s->iformat->flags & AVFMT_NOFILE ? NULL : s->pb;
  2240.     av_close_input_stream(s);
            ^
  2241.     if (pb)
  2242.         url_fclose(pb);

libavformat/utils.c:2196:1: <LHS trace>
2194. }
2195. 
2196. void av_close_input_stream(AVFormatContext *s)
      ^
2197. {
2198.     int i;

libavformat/utils.c:2196:1: Parameter `s->nb_programs`
    2194. }
    2195. 
    2196. void av_close_input_stream(AVFormatContext *s)
          ^
    2197. {
    2198.     int i;

libavformat/utils.c:2220:9: Binary operation: ([0, +oo] - 1):unsigned32 by call to `av_close_input_file` 
    2218.         av_free(st);
    2219.     }
    2220.     for(i=s->nb_programs-1; i>=0; i--) {
                  ^
    2221.         av_freep(&s->programs[i]->provider_name);
    2222.         av_freep(&s->programs[i]->name);

void av_close_input_stream(AVFormatContext *s)
{
    int i;
    AVStream *st;
    if (s->cur_st && s->cur_st->parser)
        av_free_packet(&s->cur_pkt);
    if (s->iformat->read_close)
        s->iformat->read_close(s);
    for(i=0;i<s->nb_streams;i++) {
        st = s->streams[i];
        if (st->parser) {
            av_parser_close(st->parser);
        }
        av_free(st->index_entries);
        av_free(st->codec->extradata);
        av_free(st->codec);
        av_free(st->filename);
        av_free(st->priv_data);
        av_free(st);
    }
    for(i=s->nb_programs-1; i>=0; i--) {
        av_freep(&s->programs[i]->provider_name);
        av_freep(&s->programs[i]->name);
        av_freep(&s->programs[i]->stream_index);
        av_freep(&s->programs[i]);
    }
    av_freep(&s->programs);
    flush_packet_queue(s);
    av_freep(&s->priv_data);
    while(s->nb_chapters--) {
        av_free(s->chapters[s->nb_chapters]->title);
        av_free(s->chapters[s->nb_chapters]);
    }
    av_freep(&s->chapters);
    av_free(s);
}
['static void build_file_streams(void)\n{\n    FFStream *stream, *stream_next;\n    AVFormatContext *infile;\n    int i, ret;\n    for(stream = first_stream; stream != NULL; stream = stream_next) {\n        stream_next = stream->next;\n        if (stream->stream_type == STREAM_TYPE_LIVE &&\n            !stream->feed) {\n            stream->ap_in = av_mallocz(sizeof(AVFormatParameters));\n            if (stream->fmt && !strcmp(stream->fmt->name, "rtp")) {\n                stream->ap_in->mpeg2ts_raw = 1;\n                stream->ap_in->mpeg2ts_compute_pcr = 1;\n            }\n            if ((ret = av_open_input_file(&infile, stream->feed_filename,\n                                          stream->ifmt, 0, stream->ap_in)) < 0) {\n                http_log("could not open %s: %d\\n", stream->feed_filename, ret);\n            fail:\n                remove_stream(stream);\n            } else {\n                if (av_find_stream_info(infile) < 0) {\n                    http_log("Could not find codec parameters from \'%s\'\\n",\n                             stream->feed_filename);\n                    av_close_input_file(infile);\n                    goto fail;\n                }\n                extract_mpeg4_header(infile);\n                for(i=0;i<infile->nb_streams;i++)\n                    add_av_stream1(stream, infile->streams[i]->codec);\n                av_close_input_file(infile);\n            }\n        }\n    }\n}', 'void av_close_input_file(AVFormatContext *s)\n{\n    ByteIOContext *pb = s->iformat->flags & AVFMT_NOFILE ? NULL : s->pb;\n    av_close_input_stream(s);\n    if (pb)\n        url_fclose(pb);\n}', 'void av_close_input_stream(AVFormatContext *s)\n{\n    int i;\n    AVStream *st;\n    if (s->cur_st && s->cur_st->parser)\n        av_free_packet(&s->cur_pkt);\n    if (s->iformat->read_close)\n        s->iformat->read_close(s);\n    for(i=0;i<s->nb_streams;i++) {\n        st = s->streams[i];\n        if (st->parser) {\n            av_parser_close(st->parser);\n        }\n        av_free(st->index_entries);\n        av_free(st->codec->extradata);\n        av_free(st->codec);\n        av_free(st->filename);\n        av_free(st->priv_data);\n        av_free(st);\n    }\n    for(i=s->nb_programs-1; i>=0; i--) {\n        av_freep(&s->programs[i]->provider_name);\n        av_freep(&s->programs[i]->name);\n        av_freep(&s->programs[i]->stream_index);\n        av_freep(&s->programs[i]);\n    }\n    av_freep(&s->programs);\n    flush_packet_queue(s);\n    av_freep(&s->priv_data);\n    while(s->nb_chapters--) {\n        av_free(s->chapters[s->nb_chapters]->title);\n        av_free(s->chapters[s->nb_chapters]);\n    }\n    av_freep(&s->chapters);\n    av_free(s);\n}']