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

ffmpeg.c:3522:43: Call
3520.     oc = output_files[file_idx];
3521. 
3522.     if      (!strcmp(opt, "newvideo"   )) new_video_stream   (oc, file_idx);
                                                ^
3523.     else if (!strcmp(opt, "newaudio"   )) new_audio_stream   (oc, file_idx);
3524.     else if (!strcmp(opt, "newsubtitle")) new_subtitle_stream(oc, file_idx);

ffmpeg.c:3242:1: Global `nb_streamid_map`
  3240. }
  3241. 
  3242. static void new_video_stream(AVFormatContext *oc, int file_idx)
        ^
  3243. {
  3244.     AVStream *st;

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

libavformat/utils.c:2517:1: Parameter `s->nb_streams`
    2515. }
    2516. 
    2517. AVStream *av_new_stream(AVFormatContext *s, int id)
          ^
    2518. {
    2519.     AVStream *st;

ffmpeg.c:3255:11: Call
  3253.         ffmpeg_exit(1);
  3254.     }
  3255.     ost = new_output_stream(oc, file_idx);
                  ^
  3256. 
  3257.     output_codecs = grow_array(output_codecs, sizeof(*output_codecs), &nb_output_codecs, nb_output_codecs + 1);

ffmpeg.c:3221:1: <LHS trace>
3219. }
3220. 
3221. static AVOutputStream *new_output_stream(AVFormatContext *oc, int file_idx)
      ^
3222. {
3223.     int idx = oc->nb_streams - 1;

ffmpeg.c:3221:1: Parameter `oc->nb_streams`
    3219. }
    3220. 
    3221. static AVOutputStream *new_output_stream(AVFormatContext *oc, int file_idx)
          ^
    3222. {
    3223.     int idx = oc->nb_streams - 1;

ffmpeg.c:3223:5: Binary operation: ([0, +oo] - 1):unsigned32 by call to `new_video_stream` 
    3221. static AVOutputStream *new_output_stream(AVFormatContext *oc, int file_idx)
    3222. {
    3223.     int idx = oc->nb_streams - 1;
              ^
    3224.     AVOutputStream *ost;
    3225. 
