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

avconv.c:3331:11: Call
3329.     }
3330.     *p++ = '\0';
3331.     idx = parse_number_or_die(opt, idx_str, OPT_INT, 0, INT_MAX);
                ^
3332.     streamid_map = grow_array(streamid_map, sizeof(*streamid_map), &nb_streamid_map, idx+1);
3333.     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:3331:5: Assignment
3329.     }
3330.     *p++ = '\0';
3331.     idx = parse_number_or_die(opt, idx_str, OPT_INT, 0, INT_MAX);
          ^
3332.     streamid_map = grow_array(streamid_map, sizeof(*streamid_map), &nb_streamid_map, idx+1);
3333.     streamid_map[idx] = parse_number_or_die(opt, p, OPT_INT, 0, INT_MAX);

avconv.c:3332:20: Call
3330.     *p++ = '\0';
3331.     idx = parse_number_or_die(opt, idx_str, OPT_INT, 0, INT_MAX);
3332.     streamid_map = grow_array(streamid_map, sizeof(*streamid_map), &nb_streamid_map, idx+1);
                         ^
3333.     streamid_map[idx] = parse_number_or_die(opt, p, OPT_INT, 0, INT_MAX);
3334.     return 0;

cmdutils.c:963:1: <LHS trace>
961. }
962. 
963. void *grow_array(void *array, int elem_size, int *size, int new_size)
     ^
964. {
965.     if (new_size >= INT_MAX / elem_size) {

cmdutils.c:963:1: Parameter `new_size`
  961. }
  962. 
  963. void *grow_array(void *array, int elem_size, int *size, int new_size)
       ^
  964. {
  965.     if (new_size >= INT_MAX / elem_size) {

cmdutils.c:963:1: <RHS trace>
961. }
962. 
963. void *grow_array(void *array, int elem_size, int *size, int new_size)
     ^
964. {
965.     if (new_size >= INT_MAX / elem_size) {

cmdutils.c:963:1: Parameter `elem_size`
  961. }
  962. 
  963. void *grow_array(void *array, int elem_size, int *size, int new_size)
       ^
  964. {
  965.     if (new_size >= INT_MAX / elem_size) {

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