diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-12-17 14:42:38 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-12-22 11:39:57 +0100 |
commit | 148fac277a173473eed4ea6b03c7575e5696b3fa (patch) | |
tree | 95fdf8bd09e01f15b5cfd277be1eff18deaab9e2 /fftools/ffmpeg.h | |
parent | 0ba70a679216a504ed4ea6f50c37283cf099e8ae (diff) | |
download | ffmpeg-148fac277a173473eed4ea6b03c7575e5696b3fa.tar.gz |
fftools/ffmpeg: change the MATCH_PER_TYPE_OPT macro into a function
There is no reason for it to be a macro anymore, this makes the code
using it cleaner and simpler.
Diffstat (limited to 'fftools/ffmpeg.h')
-rw-r--r-- | fftools/ffmpeg.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index 111d3ef8de..3af929ee43 100644 --- a/fftools/ffmpeg.h +++ b/fftools/ffmpeg.h @@ -803,15 +803,8 @@ void update_benchmark(const char *fmt, ...); WARN_MULTIPLE_OPT_USAGE(name, type, so, st);\ } -#define MATCH_PER_TYPE_OPT(name, type, outvar, fmtctx, mediatype)\ -{\ - int i;\ - for (i = 0; i < o->name.nb_opt; i++) {\ - char *spec = o->name.opt[i].specifier;\ - if (!strcmp(spec, mediatype))\ - outvar = o->name.opt[i].u.type;\ - }\ -} +const char *opt_match_per_type_str(const SpecifierOptList *sol, + char mediatype); extern const char * const opt_name_codec_names[]; extern const char * const opt_name_codec_tags[]; |