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

ffmpeg.c:3739:43: Call
3737.     oc = output_files[file_idx];
3738. 
3739.     if      (!strcmp(opt, "newvideo"   )) new_video_stream   (oc, file_idx);
                                                ^
3740.     else if (!strcmp(opt, "newaudio"   )) new_audio_stream   (oc, file_idx);
3741.     else if (!strcmp(opt, "newsubtitle")) new_subtitle_stream(oc, file_idx);

ffmpeg.c:3423:1: Global `nb_streamid_map`
  3421. }
  3422. 
  3423. static void new_video_stream(AVFormatContext *oc, int file_idx)
        ^
  3424. {
  3425.     AVStream *st;

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

libavformat/utils.c:2642:1: Parameter `s->nb_streams`
    2640. }
    2641. 
    2642. AVStream *av_new_stream(AVFormatContext *s, int id)
          ^
    2643. {
    2644.     AVStream *st;

ffmpeg.c:3436:11: Call
  3434.         ffmpeg_exit(1);
  3435.     }
  3436.     ost = new_output_stream(oc, file_idx);
                  ^
  3437. 
  3438.     if(!video_stream_copy){

ffmpeg.c:643:1: <LHS trace>
641. }
642. 
643. static OutputStream *new_output_stream(AVFormatContext *oc, int file_idx)
     ^
644. {
645.     int idx = oc->nb_streams - 1;

ffmpeg.c:643:1: Parameter `oc->nb_streams`
    641. }
    642. 
    643. static OutputStream *new_output_stream(AVFormatContext *oc, int file_idx)
         ^
    644. {
    645.     int idx = oc->nb_streams - 1;

ffmpeg.c:645:5: Binary operation: ([0, +oo] - 1):unsigned32 by call to `new_video_stream` 
    643. static OutputStream *new_output_stream(AVFormatContext *oc, int file_idx)
    644. {
    645.     int idx = oc->nb_streams - 1;
             ^
    646.     OutputStream *ost;
    647. 
