diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-08-08 09:10:49 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-08-13 10:28:54 +0200 |
commit | d1bdd89c2f110d768ce3e72a2d9c625c90761ca7 (patch) | |
tree | 2fdeeb9b2d477f0c24894bfee15cb657ab500c84 /fftools/cmdutils.c | |
parent | 46cbe4ab5c4fc288c23c5ea45f691f5fc7691e7d (diff) | |
download | ffmpeg-d1bdd89c2f110d768ce3e72a2d9c625c90761ca7.tar.gz |
fftools/ffmpeg: use new stream specifier API in opt_match_per_stream*()
Removes a lot of error checking code, as matching cannot fail.
Diffstat (limited to 'fftools/cmdutils.c')
-rw-r--r-- | fftools/cmdutils.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c index b3f501bd56..f725c31c12 100644 --- a/fftools/cmdutils.c +++ b/fftools/cmdutils.c @@ -288,6 +288,14 @@ static int write_option(void *optctx, const OptionDef *po, const char *opt, goto finish; } sol->opt[sol->nb_opt - 1].specifier = str; + + if (po->flags & OPT_FLAG_PERSTREAM) { + ret = stream_specifier_parse(&sol->opt[sol->nb_opt - 1].stream_spec, + str, 0, NULL); + if (ret < 0) + goto finish; + } + dst = &sol->opt[sol->nb_opt - 1].u; } |