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

avconv.c:4175:11: Call
4173.     }
4174.     *p++ = '\0';
4175.     idx = parse_number_or_die(opt, idx_str, OPT_INT, 0, INT_MAX);
                ^
4176.     o->streamid_map = grow_array(o->streamid_map, sizeof(*o->streamid_map), &o->nb_streamid_map, idx+1);
4177.     o->streamid_map[idx] = parse_number_or_die(opt, p, OPT_INT, 0, INT_MAX);

cmdutils.c:99:5: Assignment
   97.     av_log(NULL, AV_LOG_FATAL, error, context, numstr, min, max);
   98.     exit_program(1);
   99.     return 0;
           ^
  100. }
  101. 

avconv.c:4175:5: Assignment
4173.     }
4174.     *p++ = '\0';
4175.     idx = parse_number_or_die(opt, idx_str, OPT_INT, 0, INT_MAX);
          ^
4176.     o->streamid_map = grow_array(o->streamid_map, sizeof(*o->streamid_map), &o->nb_streamid_map, idx+1);
4177.     o->streamid_map[idx] = parse_number_or_die(opt, p, OPT_INT, 0, INT_MAX);

avconv.c:4176:23: Call
4174.     *p++ = '\0';
4175.     idx = parse_number_or_die(opt, idx_str, OPT_INT, 0, INT_MAX);
4176.     o->streamid_map = grow_array(o->streamid_map, sizeof(*o->streamid_map), &o->nb_streamid_map, idx+1);
                            ^
4177.     o->streamid_map[idx] = parse_number_or_die(opt, p, OPT_INT, 0, INT_MAX);
4178.     return 0;

cmdutils.c:1024:1: <LHS trace>
1022. }
1023. 
1024. void *grow_array(void *array, int elem_size, int *size, int new_size)
      ^
1025. {
1026.     if (new_size >= INT_MAX / elem_size) {

cmdutils.c:1024:1: Parameter `new_size`
  1022. }
  1023. 
  1024. void *grow_array(void *array, int elem_size, int *size, int new_size)
        ^
  1025. {
  1026.     if (new_size >= INT_MAX / elem_size) {

cmdutils.c:1024:1: <RHS trace>
1022. }
1023. 
1024. void *grow_array(void *array, int elem_size, int *size, int new_size)
      ^
1025. {
1026.     if (new_size >= INT_MAX / elem_size) {

cmdutils.c:1024:1: Parameter `elem_size`
  1022. }
  1023. 
  1024. void *grow_array(void *array, int elem_size, int *size, int new_size)
        ^
  1025. {
  1026.     if (new_size >= INT_MAX / elem_size) {

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