[FFmpeg-cvslog] lavfi/noise: use standard options parsing
Paul B Mahol
git at videolan.org
Fri Apr 5 02:16:02 CEST 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Apr 5 00:06:29 2013 +0000| [a95e6838679269c7804379ab03b88ec48e8fcccd] | committer: Paul B Mahol
lavfi/noise: use standard options parsing
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a95e6838679269c7804379ab03b88ec48e8fcccd
---
libavfilter/vf_noise.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/libavfilter/vf_noise.c b/libavfilter/vf_noise.c
index 7095324..8db5329 100644
--- a/libavfilter/vf_noise.c
+++ b/libavfilter/vf_noise.c
@@ -169,12 +169,6 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
NoiseContext *n = ctx->priv;
int ret, i;
- n->class = &noise_class;
- av_opt_set_defaults(n);
-
- if ((ret = av_set_options_string(n, args, "=", ":")) < 0)
- return ret;
-
for (i = 0; i < 4; i++) {
if (n->all.seed >= 0)
n->param[i].seed = n->all.seed;
@@ -355,6 +349,8 @@ 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."),
@@ -365,4 +361,5 @@ AVFilter avfilter_vf_noise = {
.inputs = noise_inputs,
.outputs = noise_outputs,
.priv_class = &noise_class,
+ .shorthand = shorthand,
};
More information about the ffmpeg-cvslog
mailing list