From b7817f23c0e60082a546f441c783a70413fd904f Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sat, 16 Jan 2021 20:38:54 +0100 Subject: [PATCH] avfilter/vf_phase: add support for commands --- doc/filters.texi | 4 ++++ libavfilter/vf_phase.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/filters.texi b/doc/filters.texi index 93fdd1ed44..fc2e250566 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -15777,6 +15777,10 @@ Filter selects among @samp{t}, @samp{b} and @samp{p} using image analysis only. @end table @end table +@subsection Commands + +This filter supports the all above options as @ref{commands}. + @section photosensitivity Reduce various flashes in video, so to help users with epilepsy. diff --git a/libavfilter/vf_phase.c b/libavfilter/vf_phase.c index 8536444db7..d4f580a609 100644 --- a/libavfilter/vf_phase.c +++ b/libavfilter/vf_phase.c @@ -74,7 +74,7 @@ typedef struct PhaseContext { } PhaseContext; #define OFFSET(x) offsetof(PhaseContext, x) -#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM +#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_RUNTIME_PARAM #define CONST(name, help, val, unit) { name, help, 0, AV_OPT_TYPE_CONST, {.i64=val}, 0, 0, FLAGS, unit } static const AVOption phase_options[] = { @@ -245,4 +245,5 @@ AVFilter ff_vf_phase = { .inputs = phase_inputs, .outputs = phase_outputs, .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL, + .process_command = ff_filter_process_command, };