[FFmpeg-cvslog] avfilter/vf_readeia608: add support for commands

Paul B Mahol git at videolan.org
Tue Nov 24 23:35:40 EET 2020


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Nov 24 20:52:22 2020 +0100| [97bc6900e67007c94b4a9ba7aedd81796abb5602] | committer: Paul B Mahol

avfilter/vf_readeia608: add support for commands

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=97bc6900e67007c94b4a9ba7aedd81796abb5602
---

 doc/filters.texi            | 4 ++++
 libavfilter/vf_readeia608.c | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/doc/filters.texi b/doc/filters.texi
index 15acae9709..ad8937d992 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -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
 
+ at subsection Commands
+
+This filter supports the all above options as @ref{commands}.
+
 @subsection Examples
 
 @itemize
diff --git a/libavfilter/vf_readeia608.c b/libavfilter/vf_readeia608.c
index 2973847d40..39c4703b66 100644
--- a/libavfilter/vf_readeia608.c
+++ b/libavfilter/vf_readeia608.c
@@ -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,
 };



More information about the ffmpeg-cvslog mailing list