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

ffmpeg.c:3663:43: Call
3661.     oc = output_files[nb_output_files - 1];
3662. 
3663.     if      (!strcmp(opt, "newvideo"   )) new_video_stream   (oc);
                                                ^
3664.     else if (!strcmp(opt, "newaudio"   )) new_audio_stream   (oc);
3665.     else if (!strcmp(opt, "newsubtitle")) new_subtitle_stream(oc);

ffmpeg.c:3391:1: <LHS trace>
3389. }
3390. 
3391. static void new_video_stream(AVFormatContext *oc)
      ^
3392. {
3393.     AVStream *st;

ffmpeg.c:3391:1: Global `nb_streamid_map`
  3389. }
  3390. 
  3391. static void new_video_stream(AVFormatContext *oc)
        ^
  3392. {
  3393.     AVStream *st;

ffmpeg.c:3398:10: Call
  3396.     AVCodec *codec= NULL;
  3397. 
  3398.     st = av_new_stream(oc, oc->nb_streams < nb_streamid_map ? streamid_map[oc->nb_streams] : 0);
                 ^
  3399.     if (!st) {
  3400.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2494:1: Parameter `s->nb_streams`
    2492. }
    2493. 
    2494. AVStream *av_new_stream(AVFormatContext *s, int id)
          ^
    2495. {
    2496.     AVStream *st;

ffmpeg.c:3419:5: Binary operation: ([0, +oo] - 1):unsigned32 by call to `new_video_stream` 
  3417.     avcodec_get_context_defaults3(st->codec, codec);
  3418.     bitstream_filters[nb_output_files] = grow_array(bitstream_filters[nb_output_files], sizeof(*bitstream_filters[nb_output_files]), &nb_bitstream_filters[nb_output_files], oc->nb_streams);
  3419.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= video_bitstream_filters;
            ^
  3420.     video_bitstream_filters= NULL;
  3421. 
