[FFmpeg-cvslog] lavfi/field: switch to AVOption-based system

Stefano Sabatini git at videolan.org
Thu Apr 11 00:17:44 CEST 2013


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Thu Apr 11 00:14:06 2013 +0200| [2040b428b45fa4f0167acc40a49771f92cd96769] | committer: Stefano Sabatini

lavfi/field: switch to AVOption-based system

Also remove mention to syntax explanation which is or will be redundant
and possibly confusing.

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

 doc/filters.texi       |   11 -----------
 libavfilter/avfilter.c |    1 +
 libavfilter/vf_field.c |    1 -
 3 files changed, 1 insertion(+), 12 deletions(-)

diff --git a/doc/filters.texi b/doc/filters.texi
index 251bcb5..b2d375d 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -3112,17 +3112,6 @@ Specify whether to extract the top (if the value is @code{0} or
 @code{bottom}).
 @end table
 
-If the option key is not specified, the first value sets the @var{type}
-option. For example:
- at example
-field=bottom
- at end example
-
-is equivalent to:
- at example
-field=type=bottom
- at end example
-
 @section fieldorder
 
 Transform the field order of the input video.
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 71d5e9c..753567f 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -670,6 +670,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
         !strcmp(filter->filter->name,  "ebur128"   ) ||
         !strcmp(filter->filter->name,  "edgedetect") ||
         !strcmp(filter->filter->name,  "fade"      ) ||
+        !strcmp(filter->filter->name,  "field"     ) ||
         !strcmp(filter->filter->name,  "fieldorder") ||
         !strcmp(filter->filter->name,  "fps"       ) ||
         !strcmp(filter->filter->name,  "frei0r"    ) ||
diff --git a/libavfilter/vf_field.c b/libavfilter/vf_field.c
index eb8680d..c113512 100644
--- a/libavfilter/vf_field.c
+++ b/libavfilter/vf_field.c
@@ -117,5 +117,4 @@ AVFilter avfilter_vf_field = {
     .inputs        = field_inputs,
     .outputs       = field_outputs,
     .priv_class    = &field_class,
-    .shorthand     = shorthand,
 };



More information about the ffmpeg-cvslog mailing list