diff --git a/doc/filters.texi b/doc/filters.texi index d51fc4d9e0..e691ec0bb2 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -17290,6 +17290,15 @@ option may cause flicker since the B-Frames have often larger QP. Default is @code{0} (not enabled). @end table +@subsection Commands + +This filter supports the following commands: +@table @option +@item level +@item quality +Same as quality option. And the command accepts the @code{max} same as the @code{6}. +@end table + @section sr Scale the input by applying one of the super-resolution methods based on 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