avconv_opt.c:1079: error: Integer Overflow L2
  ([1, 2147483648] × 4):signed32 by call to `grow_array`.

avconv_opt.c:1078:11: Call
1076.     }
1077.     *p++ = '\0';
1078.     idx = parse_number_or_die(opt, idx_str, OPT_INT, 0, INT_MAX);
                ^
1079.     o->streamid_map = grow_array(o->streamid_map, sizeof(*o->streamid_map), &o->nb_streamid_map, idx+1);
1080.     o->streamid_map[idx] = parse_number_or_die(opt, p, OPT_INT, 0, INT_MAX);

cmdutils.c:83:1: Parameter `min`
  81. }
  82. 
  83. double parse_number_or_die(const char *context, const char *numstr, int type,
      ^
  84.                            double min, double max)
  85. {

cmdutils.c:98:9: Assignment
   96.         error = "Expected int for %s but found %s\n";
   97.     else
   98.         return d;
               ^
   99.     av_log(NULL, AV_LOG_FATAL, error, context, numstr, min, max);
  100.     exit(1);

avconv_opt.c:1078:5: Assignment
1076.     }
1077.     *p++ = '\0';
1078.     idx = parse_number_or_die(opt, idx_str, OPT_INT, 0, INT_MAX);
          ^
1079.     o->streamid_map = grow_array(o->streamid_map, sizeof(*o->streamid_map), &o->nb_streamid_map, idx+1);
1080.     o->streamid_map[idx] = parse_number_or_die(opt, p, OPT_INT, 0, INT_MAX);

avconv_opt.c:1079:23: Call
1077.     *p++ = '\0';
1078.     idx = parse_number_or_die(opt, idx_str, OPT_INT, 0, INT_MAX);
1079.     o->streamid_map = grow_array(o->streamid_map, sizeof(*o->streamid_map), &o->nb_streamid_map, idx+1);
                            ^
1080.     o->streamid_map[idx] = parse_number_or_die(opt, p, OPT_INT, 0, INT_MAX);
1081.     return 0;

cmdutils.c:1264:1: <LHS trace>
1262. }
1263. 
1264. void *grow_array(void *array, int elem_size, int *size, int new_size)
      ^
1265. {
1266.     if (new_size >= INT_MAX / elem_size) {

cmdutils.c:1264:1: Parameter `new_size`
  1262. }
  1263. 
  1264. void *grow_array(void *array, int elem_size, int *size, int new_size)
        ^
  1265. {
  1266.     if (new_size >= INT_MAX / elem_size) {

cmdutils.c:1264:1: <RHS trace>
1262. }
1263. 
1264. void *grow_array(void *array, int elem_size, int *size, int new_size)
      ^
1265. {
1266.     if (new_size >= INT_MAX / elem_size) {

cmdutils.c:1264:1: Parameter `elem_size`
  1262. }
  1263. 
  1264. void *grow_array(void *array, int elem_size, int *size, int new_size)
        ^
  1265. {
  1266.     if (new_size >= INT_MAX / elem_size) {

cmdutils.c:1271:24: Binary operation: ([1, 2147483648] × 4):signed32 by call to `grow_array` 
  1269.     }
  1270.     if (*size < new_size) {
  1271.         uint8_t *tmp = av_realloc(array, new_size*elem_size);
                               ^
  1272.         if (!tmp) {
  1273.             av_log(NULL, AV_LOG_ERROR, "Could not alloc buffer.\n");
