History

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.

Jun Zhao committed 6 years ago

Commit 692f0511 parent 029cc982 files · +10 −1Browse files

Showing the changes to libavfilter (1 of 2 files). Show all

Unified · Split

libavfilter/vf_spp.c+1−1
@@ -444,7 +444,7 @@ static int process_command(AVFilterContext *ctx, const char *cmd, const char *ar · 443 unmodified lines
444444 {
445445 SPPContext *s = ctx->priv;
446446
447− if (!strcmp(cmd, "level")) {
447+ if (!strcmp(cmd, "level") || !strcmp(cmd, "quality")) {
448448 if (!strcmp(args, "max"))
449449 s->log2_count = MAX_LEVEL;
450450 else

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t