]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/vf_readeia608: add support for commands
authorPaul B Mahol <onemda@gmail.com>
Tue, 24 Nov 2020 19:52:22 +0000 (20:52 +0100)
committerPaul B Mahol <onemda@gmail.com>
Tue, 24 Nov 2020 21:34:18 +0000 (22:34 +0100)
doc/filters.texi
libavfilter/vf_readeia608.c

index 15acae9709e89dcdc2cb080ee77dee7cd0c9d002..ad8937d992dfff1e6a71c0daa6222accfcb07490 100644 (file)
@@ -15910,6 +15910,10 @@ Enable checking the parity bit. In the event of a parity error, the filter will
 Lowpass lines prior to further processing. Default is enabled.
 @end table
 
+@subsection Commands
+
+This filter supports the all above options as @ref{commands}.
+
 @subsection Examples
 
 @itemize
index 2973847d408ce0364149d23fb30032ece87b88c6..39c4703b6651d8319f4803b79b93a53f6d4a5630 100644 (file)
@@ -74,7 +74,7 @@ typedef struct ReadEIA608Context {
 } ReadEIA608Context;
 
 #define OFFSET(x) offsetof(ReadEIA608Context, 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 readeia608_options[] = {
     { "scan_min", "set from which line to scan for codes",               OFFSET(start), AV_OPT_TYPE_INT,   {.i64=0},     0, INT_MAX, FLAGS },
@@ -440,4 +440,5 @@ AVFilter ff_vf_readeia608 = {
     .outputs       = readeia608_outputs,
     .uninit        = uninit,
     .flags         = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
+    .process_command = ff_filter_process_command,
 };