diff options
author | Paul B Mahol <onemda@gmail.com> | 2022-03-25 12:12:37 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2022-03-29 20:36:54 +0200 |
commit | 96ebf7dceba882134911df6651cee49c70511c37 (patch) | |
tree | ace218bc90cb92d2ade6de1347ac5f252c3824f5 /libavfilter/f_realtime.c | |
parent | 3a22bc03e6b1813a8388c39137150f322f9119f6 (diff) | |
download | ffmpeg-96ebf7dceba882134911df6651cee49c70511c37.tar.gz |
avfilter/f_realtime: add support for commands
Diffstat (limited to 'libavfilter/f_realtime.c')
-rw-r--r-- | libavfilter/f_realtime.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/f_realtime.c b/libavfilter/f_realtime.c index 78da5dc3a7..ef713474ea 100644 --- a/libavfilter/f_realtime.c +++ b/libavfilter/f_realtime.c @@ -66,7 +66,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) } #define OFFSET(x) offsetof(RealtimeContext, x) -#define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_FILTERING_PARAM +#define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_RUNTIME_PARAM static const AVOption options[] = { { "limit", "sleep time limit", OFFSET(limit), AV_OPT_TYPE_DURATION, { .i64 = 2000000 }, 0, INT64_MAX, FLAGS }, { "speed", "speed factor", OFFSET(speed), AV_OPT_TYPE_DOUBLE, { .dbl = 1.0 }, DBL_MIN, DBL_MAX, FLAGS }, @@ -100,6 +100,7 @@ const AVFilter ff_vf_realtime = { .flags = AVFILTER_FLAG_METADATA_ONLY, FILTER_INPUTS(avfilter_vf_realtime_inputs), FILTER_OUTPUTS(avfilter_vf_realtime_outputs), + .process_command = ff_filter_process_command, }; #endif /* CONFIG_REALTIME_FILTER */ @@ -128,5 +129,6 @@ const AVFilter ff_af_arealtime = { .flags = AVFILTER_FLAG_METADATA_ONLY, FILTER_INPUTS(arealtime_inputs), FILTER_OUTPUTS(arealtime_outputs), + .process_command = ff_filter_process_command, }; #endif /* CONFIG_AREALTIME_FILTER */ |