cmdutils.c:436: error: Integer Overflow L2
  ([0, 2147483647] + 1):signed32.

cmdutils.c:435:15: <LHS trace>
433. {
434. #if HAVE_SETRLIMIT
435.     int lim = parse_number_or_die(opt, arg, OPT_INT64, 0, INT_MAX);
                   ^
436.     struct rlimit rl = { lim, lim + 1 };
437.     if (setrlimit(RLIMIT_CPU, &rl))

cmdutils.c:435:15: Call
433. {
434. #if HAVE_SETRLIMIT
435.     int lim = parse_number_or_die(opt, arg, OPT_INT64, 0, INT_MAX);
                   ^
436.     struct rlimit rl = { lim, lim + 1 };
437.     if (setrlimit(RLIMIT_CPU, &rl))

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);

cmdutils.c:435:5: Assignment
433. {
434. #if HAVE_SETRLIMIT
435.     int lim = parse_number_or_die(opt, arg, OPT_INT64, 0, INT_MAX);
         ^
436.     struct rlimit rl = { lim, lim + 1 };
437.     if (setrlimit(RLIMIT_CPU, &rl))

cmdutils.c:436:24: Binary operation: ([0, 2147483647] + 1):signed32
434. #if HAVE_SETRLIMIT
435.     int lim = parse_number_or_die(opt, arg, OPT_INT64, 0, INT_MAX);
436.     struct rlimit rl = { lim, lim + 1 };
                            ^
437.     if (setrlimit(RLIMIT_CPU, &rl))
438.         perror("setrlimit");

int opt_timelimit(const char *opt, const char *arg)
{
#if HAVE_SETRLIMIT
    int lim = parse_number_or_die(opt, arg, OPT_INT64, 0, INT_MAX);
    struct rlimit rl = { lim, lim + 1 };
    if (setrlimit(RLIMIT_CPU, &rl))
        perror("setrlimit");
#else
    av_log(NULL, AV_LOG_WARNING, "-%s not implemented on this OS\n", opt);
#endif
    return 0;
}
['int opt_timelimit(const char *opt, const char *arg)\n{\n#if HAVE_SETRLIMIT\n    int lim = parse_number_or_die(opt, arg, OPT_INT64, 0, INT_MAX);\n    struct rlimit rl = { lim, lim + 1 };\n    if (setrlimit(RLIMIT_CPU, &rl))\n        perror("setrlimit");\n#else\n    av_log(NULL, AV_LOG_WARNING, "-%s not implemented on this OS\\n", opt);\n#endif\n    return 0;\n}', 'double parse_number_or_die(const char *context, const char *numstr, int type,\n                           double min, double max)\n{\n    char *tail;\n    const char *error;\n    double d = av_strtod(numstr, &tail);\n    if (*tail)\n        error = "Expected number for %s but found: %s\\n";\n    else if (d < min || d > max)\n        error = "The value for %s was %s which is not within %f - %f\\n";\n    else if (type == OPT_INT64 && (int64_t)d != d)\n        error = "Expected int64 for %s but found %s\\n";\n    else if (type == OPT_INT && (int)d != d)\n        error = "Expected int for %s but found %s\\n";\n    else\n        return d;\n    av_log(NULL, AV_LOG_FATAL, error, context, numstr, min, max);\n    exit_program(1);\n    return 0;\n}']