MCPcopy Create free account
hub / github.com/byhook/ffmpeg4android / opt_timelimit

Function opt_timelimit

ffmpeg-single-cmd/src/main/cpp/cmdutils.c:1039–1050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1037}
1038
1039int 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
1052void print_error(const char *filename, int err)
1053{

Callers

nothing calls this directly

Calls 1

parse_number_or_dieFunction · 0.85

Tested by

no test coverage detected