[FFmpeg-cvslog] lavfi/noise: switch to an AVOptions-based system.

Clément Bœsch git at videolan.org
Thu Apr 11 01:10:17 CEST 2013


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Thu Apr 11 00:52:39 2013 +0200| [a689a6b698b9c6c97fb64208dc1a71b1f384eb9c] | committer: Clément Bœsch

lavfi/noise: switch to an AVOptions-based system.

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

 doc/filters.texi       |    3 +--
 libavfilter/avfilter.c |    1 +
 libavfilter/vf_noise.c |    3 ---
 3 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/doc/filters.texi b/doc/filters.texi
index 490bbb8..e25a49a 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -4070,8 +4070,7 @@ noformat=yuv420p|yuv444p|yuv410p
 
 Add noise on video input frame.
 
-This filter accepts a list of options in the form of @var{key}=@var{value}
-pairs separated by ":". A description of the accepted options follows.
+The filter accepts the following options:
 
 @table @option
 @item all_seed
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 23da529..5dff27a 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -689,6 +689,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
         !strcmp(filter->filter->name, "mandelbrot" ) ||
         !strcmp(filter->filter->name, "mptestsrc"  ) ||
         !strcmp(filter->filter->name, "negate"     ) ||
+        !strcmp(filter->filter->name, "noise"      ) ||
         !strcmp(filter->filter->name, "overlay"    ) ||
         !strcmp(filter->filter->name, "pad"        ) ||
         !strcmp(filter->filter->name,   "format") ||
diff --git a/libavfilter/vf_noise.c b/libavfilter/vf_noise.c
index 84205cb..52e3963 100644
--- a/libavfilter/vf_noise.c
+++ b/libavfilter/vf_noise.c
@@ -462,8 +462,6 @@ static const AVFilterPad noise_outputs[] = {
     { NULL }
 };
 
-static const char *const shorthand[] = { NULL };
-
 AVFilter avfilter_vf_noise = {
     .name          = "noise",
     .description   = NULL_IF_CONFIG_SMALL("Add noise."),
@@ -474,5 +472,4 @@ AVFilter avfilter_vf_noise = {
     .inputs        = noise_inputs,
     .outputs       = noise_outputs,
     .priv_class    = &noise_class,
-    .shorthand     = shorthand,
 };



More information about the ffmpeg-cvslog mailing list