[FFmpeg-devel] [PATCH] fftools: Accept more negative prefixes

Moritz Barsnick barsnick at gmx.net
Fri Aug 21 08:49:02 EEST 2020


On Thu, Aug 20, 2020 at 22:49:16 +0100, Mark Thompson wrote:

> With this patch, -disable_auto_conversion_filters does what you want.
[...]
> +    if (!po->name) {
> +        /* Try to match a boolean option with a negative prefix. */
> +        for (int i = 0; i < FF_ARRAY_ELEMS(negative_prefixes); i++) {
> +            size_t len = strlen(negative_prefixes[i]);
> +            if (!strncmp(opt, negative_prefixes[i], len)) {
> +                po = find_option(options, opt + len);
> +                if (po->name && (po->flags & OPT_BOOL)) {
> +                    arg = "0";
> +                    break;
> +                }
> +            }
> +        }

Without checking in more detail: Wouldn't this break the
"-noise_reduction", "-non_deterministic" and "-non_linear_quant"
options?

Cheers,
Moritz


More information about the ffmpeg-devel mailing list