diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-07-14 16:37:19 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-07-20 20:47:46 +0200 |
commit | 49ac7fc48566a5cc33c0cd1a2806251fddb52a03 (patch) | |
tree | 9fa4ddd88947e45d225984ce812989a44b0bb704 /fftools/cmdutils.h | |
parent | 9cb47c78d66c0d8abf5dbedd254d3761d5c5b06a (diff) | |
download | ffmpeg-49ac7fc48566a5cc33c0cd1a2806251fddb52a03.tar.gz |
fftools: remove parse_time_or_die()
Replace it with calling av_parse_time() directly, which provides
graceful error handling and more accurate error messages.
Diffstat (limited to 'fftools/cmdutils.h')
-rw-r--r-- | fftools/cmdutils.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/fftools/cmdutils.h b/fftools/cmdutils.h index dedf4de8dd..ff1b0f2e84 100644 --- a/fftools/cmdutils.h +++ b/fftools/cmdutils.h @@ -112,23 +112,6 @@ int opt_timelimit(void *optctx, const char *opt, const char *arg); int parse_number(const char *context, const char *numstr, int type, double min, double max, double *dst); -/** - * Parse a string specifying a time and return its corresponding - * value as a number of microseconds. Exit from the application if - * the string cannot be correctly parsed. - * - * @param context the context of the value to be set (e.g. the - * corresponding command line option name) - * @param timestr the string to be parsed - * @param is_duration a flag which tells how to interpret timestr, if - * not zero timestr is interpreted as a duration, otherwise as a - * date - * - * @see av_parse_time() - */ -int64_t parse_time_or_die(const char *context, const char *timestr, - int is_duration); - typedef struct SpecifierOpt { char *specifier; /**< stream/chapter/program/... specifier */ union { |