summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2021-02-09 11:38:37 +0100
committerPaul B Mahol <onemda@gmail.com>2021-02-09 11:39:26 +0100
commit73ff84c3d4fba6746f456ea9dd8fb7b138b245b7 (patch)
treed181016dd070a83da1e7802459e47d9f31df3733 /libavfilter
parentca042675eebe2c29f052eb2fa07db15fd702a943 (diff)
downloadffmpeg-73ff84c3d4fba6746f456ea9dd8fb7b138b245b7.tar.gz
avfilter/vf_swaprect: add support for commands
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_swaprect.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_swaprect.c b/libavfilter/vf_swaprect.c
index cf9c298f2f..66bed161f4 100644
--- a/libavfilter/vf_swaprect.c
+++ b/libavfilter/vf_swaprect.c
@@ -43,7 +43,7 @@ typedef struct SwapRectContext {
} SwapRectContext;
#define OFFSET(x) offsetof(SwapRectContext, x)
-#define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM
+#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
static const AVOption swaprect_options[] = {
{ "w", "set rect width", OFFSET(w), AV_OPT_TYPE_STRING, {.str="w/2"}, 0, 0, .flags = FLAGS },
{ "h", "set rect height", OFFSET(h), AV_OPT_TYPE_STRING, {.str="h/2"}, 0, 0, .flags = FLAGS },
@@ -253,4 +253,5 @@ AVFilter ff_vf_swaprect = {
.inputs = inputs,
.outputs = outputs,
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
+ .process_command = ff_filter_process_command,
};