| 1037 | } |
| 1038 | |
| 1039 | int opt_timelimit(void *optctx, const char *opt, const char *arg) |
| 1040 | { |
| 1041 | #if HAVE_SETRLIMIT |
| 1042 | int lim = parse_number_or_die(opt, arg, OPT_INT64, 0, INT_MAX); |
| 1043 | struct rlimit rl = { lim, lim + 1 }; |
| 1044 | if (setrlimit(RLIMIT_CPU, &rl)) |
| 1045 | perror("setrlimit"); |
| 1046 | #else |
| 1047 | av_log(NULL, AV_LOG_WARNING, "-%s not implemented on this OS\n", opt); |
| 1048 | #endif |
| 1049 | return 0; |
| 1050 | } |
| 1051 | |
| 1052 | void print_error(const char *filename, int err) |
| 1053 | { |
nothing calls this directly
no test coverage detected