diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-04-11 00:20:01 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-04-11 00:20:01 +0200 |
commit | cff8f91ddfbdef72be7ec3adec6adf3e92ae4a27 (patch) | |
tree | 0304310a70019284f5b4f47c4dc56454d6c5b59f | |
parent | 2040b428b45fa4f0167acc40a49771f92cd96769 (diff) | |
download | ffmpeg-cff8f91ddfbdef72be7ec3adec6adf3e92ae4a27.tar.gz |
lavfi/decimate: switch to an AVOption-based system
-rw-r--r-- | doc/filters.texi | 5 | ||||
-rw-r--r-- | libavfilter/avfilter.c | 1 | ||||
-rw-r--r-- | libavfilter/vf_decimate.c | 3 |
3 files changed, 1 insertions, 8 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index b2d375df5a..01381e208f 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -2452,11 +2452,6 @@ The main use of this filter is for very-low-bitrate encoding (e.g. streaming over dialup modem), but it could in theory be used for fixing movies that were inverse-telecined incorrectly. -The filter accepts parameters as a list of @var{key}=@var{value} -pairs, separated by ":". If the key of the first options is omitted, -the arguments are interpreted according to the syntax: -@option{max}:@option{hi}:@option{lo}:@option{frac}. - A description of the accepted options follows. @table @option diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 753567fe81..3adee34785 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -664,6 +664,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque !strcmp(filter->filter->name, "crop" ) || !strcmp(filter->filter->name, "cropdetect") || !strcmp(filter->filter->name, "curves" ) || + !strcmp(filter->filter->name, "decimate" ) || !strcmp(filter->filter->name, "delogo" ) || !strcmp(filter->filter->name, "drawbox" ) || !strcmp(filter->filter->name, "drawtext" ) || diff --git a/libavfilter/vf_decimate.c b/libavfilter/vf_decimate.c index 2410344176..182f48b5b1 100644 --- a/libavfilter/vf_decimate.c +++ b/libavfilter/vf_decimate.c @@ -244,8 +244,6 @@ static const AVFilterPad decimate_outputs[] = { { NULL } }; -static const char *const shorthand[] = { "max", "hi", "lo", "frac", NULL }; - AVFilter avfilter_vf_decimate = { .name = "decimate", .description = NULL_IF_CONFIG_SMALL("Remove near-duplicate frames."), @@ -257,5 +255,4 @@ AVFilter avfilter_vf_decimate = { .inputs = decimate_inputs, .outputs = decimate_outputs, .priv_class = &decimate_class, - .shorthand = shorthand, }; |