| 163 | } |
| 164 | |
| 165 | int64_t parse_time_or_die(const char *context, const char *timestr, |
| 166 | int is_duration) |
| 167 | { |
| 168 | int64_t us; |
| 169 | if (av_parse_time(&us, timestr, is_duration) < 0) { |
| 170 | av_log(NULL, AV_LOG_FATAL, "Invalid %s specification for %s: %s\n", |
| 171 | is_duration ? "duration" : "date", context, timestr); |
| 172 | exit_program(1); |
| 173 | } |
| 174 | return us; |
| 175 | } |
| 176 | |
| 177 | void show_help_options(const OptionDef *options, const char *msg, int req_flags, |
| 178 | int rej_flags, int alt_flags) |
no test coverage detected