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

ffmpeg.c:3676:43: Call
3674.     oc = output_files[file_idx];
3675. 
3676.     if      (!strcmp(opt, "newvideo"   )) new_video_stream   (oc, file_idx);
                                                ^
3677.     else if (!strcmp(opt, "newaudio"   )) new_audio_stream   (oc, file_idx);
3678.     else if (!strcmp(opt, "newsubtitle")) new_subtitle_stream(oc, file_idx);

ffmpeg.c:3394:1: <LHS trace>
3392. }
3393. 
3394. static void new_video_stream(AVFormatContext *oc, int file_idx)
      ^
3395. {
3396.     AVStream *st;

ffmpeg.c:3394:1: Global `nb_streamid_map`
  3392. }
  3393. 
  3394. static void new_video_stream(AVFormatContext *oc, int file_idx)
        ^
  3395. {
  3396.     AVStream *st;

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

libavformat/utils.c:2511:1: Parameter `s->nb_streams`
    2509. }
    2510. 
    2511. AVStream *av_new_stream(AVFormatContext *s, int id)
          ^
    2512. {
    2513.     AVStream *st;

ffmpeg.c:3425:5: Binary operation: ([0, +oo] - 1):unsigned32 by call to `new_video_stream` 
  3423.                    sizeof(*bitstream_filters[file_idx]),
  3424.                    &nb_bitstream_filters[file_idx], oc->nb_streams);
  3425.     bitstream_filters[file_idx][oc->nb_streams - 1]= video_bitstream_filters;
            ^
  3426.     video_bitstream_filters= NULL;
  3427. 
