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

avconv.c:4062:11: Call
4060.     }
4061.     *p++ = '\0';
4062.     idx = parse_number_or_die(opt, idx_str, OPT_INT, 0, INT_MAX);
                ^
4063.     o->streamid_map = grow_array(o->streamid_map, sizeof(*o->streamid_map), &o->nb_streamid_map, idx+1);
4064.     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_program(1);

avconv.c:4062:5: Assignment
4060.     }
4061.     *p++ = '\0';
4062.     idx = parse_number_or_die(opt, idx_str, OPT_INT, 0, INT_MAX);
          ^
4063.     o->streamid_map = grow_array(o->streamid_map, sizeof(*o->streamid_map), &o->nb_streamid_map, idx+1);
4064.     o->streamid_map[idx] = parse_number_or_die(opt, p, OPT_INT, 0, INT_MAX);

avconv.c:4063:23: Call
4061.     *p++ = '\0';
4062.     idx = parse_number_or_die(opt, idx_str, OPT_INT, 0, INT_MAX);
4063.     o->streamid_map = grow_array(o->streamid_map, sizeof(*o->streamid_map), &o->nb_streamid_map, idx+1);
                            ^
4064.     o->streamid_map[idx] = parse_number_or_die(opt, p, OPT_INT, 0, INT_MAX);
4065.     return 0;

cmdutils.c:1028:1: <LHS trace>
1026. }
1027. 
1028. void *grow_array(void *array, int elem_size, int *size, int new_size)
      ^
1029. {
1030.     if (new_size >= INT_MAX / elem_size) {

cmdutils.c:1028:1: Parameter `new_size`
  1026. }
  1027. 
  1028. void *grow_array(void *array, int elem_size, int *size, int new_size)
        ^
  1029. {
  1030.     if (new_size >= INT_MAX / elem_size) {

cmdutils.c:1028:1: <RHS trace>
1026. }
1027. 
1028. void *grow_array(void *array, int elem_size, int *size, int new_size)
      ^
1029. {
1030.     if (new_size >= INT_MAX / elem_size) {

cmdutils.c:1028:1: Parameter `elem_size`
  1026. }
  1027. 
  1028. void *grow_array(void *array, int elem_size, int *size, int new_size)
        ^
  1029. {
  1030.     if (new_size >= INT_MAX / elem_size) {

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