ffmpeg.c:3193: error: Integer Overflow L2
  ([0, +oo] - 1):unsigned32 by call to `avformat_open_input`.

ffmpeg.c:3189:9: Call
3187.         find_codec_or_die(audio_codec_name   , AVMEDIA_TYPE_AUDIO   , 0);
3188.     ic->subtitle_codec_id=
3189.         find_codec_or_die(subtitle_codec_name, AVMEDIA_TYPE_SUBTITLE, 0);
              ^
3190.     ic->flags |= AVFMT_FLAG_NONBLOCK;
3191. 

ffmpeg.c:3120:9: Assignment
  3118. 
  3119.     if(!name)
  3120.         return CODEC_ID_NONE;
                ^
  3121.     codec = encoder ?
  3122.         avcodec_find_encoder_by_name(name) :

ffmpeg.c:3188:5: Assignment
3186.     ic->audio_codec_id   =
3187.         find_codec_or_die(audio_codec_name   , AVMEDIA_TYPE_AUDIO   , 0);
3188.     ic->subtitle_codec_id=
          ^
3189.         find_codec_or_die(subtitle_codec_name, AVMEDIA_TYPE_SUBTITLE, 0);
3190.     ic->flags |= AVFMT_FLAG_NONBLOCK;

ffmpeg.c:3190:5: Assignment
3188.     ic->subtitle_codec_id=
3189.         find_codec_or_die(subtitle_codec_name, AVMEDIA_TYPE_SUBTITLE, 0);
3190.     ic->flags |= AVFMT_FLAG_NONBLOCK;
          ^
3191. 
3192.     /* open the input file with generic libav function */

ffmpeg.c:3193:11: Call
3191. 
3192.     /* open the input file with generic libav function */
3193.     err = avformat_open_input(&ic, filename, file_iformat, &format_opts);
                ^
3194.     if (err < 0) {
3195.         print_error(filename, err);

libavformat/utils.c:605:1: Parameter `(*ps)->nb_programs`
  603. }
  604. 
  605. int avformat_open_input(AVFormatContext **ps, const char *filename, AVInputFormat *fmt, AVDictionary **options)
       ^
  606. {
  607.     AVFormatContext *s = *ps;

libavformat/utils.c:675:5: Call
  673.     if (s->pb && !(s->flags & AVFMT_FLAG_CUSTOM_IO))
  674.         avio_close(s->pb);
  675.     avformat_free_context(s);
           ^
  676.     *ps = NULL;
  677.     return ret;

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_open_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);
