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

avconv.c:3208:11: Call
3206.     }
3207.     *p++ = '\0';
3208.     idx = parse_number_or_die(opt, idx_str, OPT_INT, 0, INT_MAX);
                ^
3209.     o->streamid_map = grow_array(o->streamid_map, sizeof(*o->streamid_map), &o->nb_streamid_map, idx+1);
3210.     o->streamid_map[idx] = parse_number_or_die(opt, p, OPT_INT, 0, INT_MAX);

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

avconv.c:3208:5: Assignment
3206.     }
3207.     *p++ = '\0';
3208.     idx = parse_number_or_die(opt, idx_str, OPT_INT, 0, INT_MAX);
          ^
3209.     o->streamid_map = grow_array(o->streamid_map, sizeof(*o->streamid_map), &o->nb_streamid_map, idx+1);
3210.     o->streamid_map[idx] = parse_number_or_die(opt, p, OPT_INT, 0, INT_MAX);

avconv.c:3209:23: Call
3207.     *p++ = '\0';
3208.     idx = parse_number_or_die(opt, idx_str, OPT_INT, 0, INT_MAX);
3209.     o->streamid_map = grow_array(o->streamid_map, sizeof(*o->streamid_map), &o->nb_streamid_map, idx+1);
                            ^
3210.     o->streamid_map[idx] = parse_number_or_die(opt, p, OPT_INT, 0, INT_MAX);
3211.     return 0;

cmdutils.c:1030:1: <LHS trace>
1028. #endif /* CONFIG_AVFILTER */
1029. 
1030. void *grow_array(void *array, int elem_size, int *size, int new_size)
      ^
1031. {
1032.     if (new_size >= INT_MAX / elem_size) {

cmdutils.c:1030:1: Parameter `new_size`
  1028. #endif /* CONFIG_AVFILTER */
  1029. 
  1030. void *grow_array(void *array, int elem_size, int *size, int new_size)
        ^
  1031. {
  1032.     if (new_size >= INT_MAX / elem_size) {

cmdutils.c:1030:1: <RHS trace>
1028. #endif /* CONFIG_AVFILTER */
1029. 
1030. void *grow_array(void *array, int elem_size, int *size, int new_size)
      ^
1031. {
1032.     if (new_size >= INT_MAX / elem_size) {

cmdutils.c:1030:1: Parameter `elem_size`
  1028. #endif /* CONFIG_AVFILTER */
  1029. 
  1030. void *grow_array(void *array, int elem_size, int *size, int new_size)
        ^
  1031. {
  1032.     if (new_size >= INT_MAX / elem_size) {

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