diff options
author | Jun Zhao <barryjzhao@tencent.com> | 2020-01-10 14:48:02 +0300 |
---|---|---|
committer | Jun Zhao <barryjzhao@tencent.com> | 2020-01-13 04:25:18 +0300 |
commit | 692f0519bbefbeac2004aba92c35a37c5f378eaf (patch) | |
tree | 08c2512c954acfcf12ca764d3bdfeebb6ff2da4b /libavfilter/vf_spp.c | |
parent | 029cc9883fa7fe0e4fdbaac29f2d53d31c9792e3 (diff) |
lavfi/spp: add "quality" option in runtime change path
it's stranage to use option "level" in runtime change path but used
"quality" in option, add "quality" in runtime change path, it's more
intuitive and keep the "level" for compatibility.
Reviewe-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
Diffstat (limited to 'libavfilter/vf_spp.c')
-rw-r--r-- | libavfilter/vf_spp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_spp.c b/libavfilter/vf_spp.c index fe579cedb1..db381cdf30 100644 --- a/libavfilter/vf_spp.c +++ b/libavfilter/vf_spp.c @@ -444,7 +444,7 @@ static int process_command(AVFilterContext *ctx, const char *cmd, const char *ar { SPPContext *s = ctx->priv; - if (!strcmp(cmd, "level")) { + if (!strcmp(cmd, "level") || !strcmp(cmd, "quality")) { if (!strcmp(args, "max")) s->log2_count = MAX_LEVEL; else |