diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-11-13 12:59:17 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-11-13 13:07:42 +0100 |
commit | 45f03cdd20c3f9a83d4955fa32ffdc287229ccfd (patch) | |
tree | 14cdf84de8855fd6b6f23df51073b8f03521874e /libavfilter/vf_colorbalance.c | |
parent | bffd0f7b69b843d583dd4ab46de19dab98b68d39 (diff) |
avfilter/vf_colorbalance: add support for commands
Diffstat (limited to 'libavfilter/vf_colorbalance.c')
-rw-r--r-- | libavfilter/vf_colorbalance.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_colorbalance.c b/libavfilter/vf_colorbalance.c index 097a3d778f..cc90dc08c7 100644 --- a/libavfilter/vf_colorbalance.c +++ b/libavfilter/vf_colorbalance.c @@ -57,7 +57,7 @@ typedef struct ColorBalanceContext { } ColorBalanceContext; #define OFFSET(x) offsetof(ColorBalanceContext, 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 static const AVOption colorbalance_options[] = { { "rs", "set red shadows", OFFSET(cyan_red.shadows), AV_OPT_TYPE_FLOAT, {.dbl=0}, -1, 1, FLAGS }, { "gs", "set green shadows", OFFSET(magenta_green.shadows), AV_OPT_TYPE_FLOAT, {.dbl=0}, -1, 1, FLAGS }, @@ -448,4 +448,5 @@ AVFilter ff_vf_colorbalance = { .inputs = colorbalance_inputs, .outputs = colorbalance_outputs, .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS, + .process_command = ff_filter_process_command, }; |