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

avconv.c:3228:11: Call
3226.     }
3227.     *p++ = '\0';
3228.     idx = parse_number_or_die(opt, idx_str, OPT_INT, 0, INT_MAX);
                ^
3229.     o->streamid_map = grow_array(o->streamid_map, sizeof(*o->streamid_map), &o->nb_streamid_map, idx+1);
3230.     o->streamid_map[idx] = parse_number_or_die(opt, p, OPT_INT, 0, INT_MAX);

cmdutils.c:96:5: Assignment
  94.     fprintf(stderr, error, context, numstr, min, max);
  95.     exit_program(1);
  96.     return 0;
          ^
  97. }
  98. 

avconv.c:3228:5: Assignment
3226.     }
3227.     *p++ = '\0';
3228.     idx = parse_number_or_die(opt, idx_str, OPT_INT, 0, INT_MAX);
          ^
3229.     o->streamid_map = grow_array(o->streamid_map, sizeof(*o->streamid_map), &o->nb_streamid_map, idx+1);
3230.     o->streamid_map[idx] = parse_number_or_die(opt, p, OPT_INT, 0, INT_MAX);

avconv.c:3229:23: Call
3227.     *p++ = '\0';
3228.     idx = parse_number_or_die(opt, idx_str, OPT_INT, 0, INT_MAX);
3229.     o->streamid_map = grow_array(o->streamid_map, sizeof(*o->streamid_map), &o->nb_streamid_map, idx+1);
                            ^
3230.     o->streamid_map[idx] = parse_number_or_die(opt, p, OPT_INT, 0, INT_MAX);
3231.     return 0;

cmdutils.c:992:1: <LHS trace>
990. }
991. 
992. void *grow_array(void *array, int elem_size, int *size, int new_size)
     ^
993. {
994.     if (new_size >= INT_MAX / elem_size) {

cmdutils.c:992:1: Parameter `new_size`
  990. }
  991. 
  992. void *grow_array(void *array, int elem_size, int *size, int new_size)
       ^
  993. {
  994.     if (new_size >= INT_MAX / elem_size) {

cmdutils.c:992:1: <RHS trace>
990. }
991. 
992. void *grow_array(void *array, int elem_size, int *size, int new_size)
     ^
993. {
994.     if (new_size >= INT_MAX / elem_size) {

cmdutils.c:992:1: Parameter `elem_size`
  990. }
  991. 
  992. void *grow_array(void *array, int elem_size, int *size, int new_size)
       ^
  993. {
  994.     if (new_size >= INT_MAX / elem_size) {

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