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.
Showing the changes to libavfilter (1 of 2 files). Show all
Unified · Split
| @@ -444,7 +444,7 @@ static int process_command(AVFilterContext *ctx, const char *cmd, const char *ar · 443 unmodified lines | |||
| 444 | { | 444 | { |
| 445 | SPPContext *s = ctx->priv; | 445 | SPPContext *s = ctx->priv; |
| 446 | 446 | ||
| 447 | if (!strcmp(cmd, "level")) { | 447 | if (!strcmp(cmd, "level") || !strcmp(cmd, "quality")) { |
| 448 | if (!strcmp(args, "max")) | 448 | if (!strcmp(args, "max")) |
| 449 | s->log2_count = MAX_LEVEL; | 449 | s->log2_count = MAX_LEVEL; |
| 450 | else | 450 | else |