[FFmpeg-cvslog] lavfi/idet: use standard options parsing.
Clément Bœsch
git at videolan.org
Sun Mar 24 12:33:31 CET 2013
ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Sun Mar 24 09:08:01 2013 +0100| [ab228f91637a8a9018e29b98887b1ad21fb99660] | committer: Clément Bœsch
lavfi/idet: use standard options parsing.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ab228f91637a8a9018e29b98887b1ad21fb99660
---
libavfilter/vf_idet.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c
index f61ac5a..275302f 100644
--- a/libavfilter/vf_idet.c
+++ b/libavfilter/vf_idet.c
@@ -276,14 +276,6 @@ static int query_formats(AVFilterContext *ctx)
static av_cold int init(AVFilterContext *ctx, const char *args)
{
IDETContext *idet = ctx->priv;
- static const char *shorthand[] = { "intl_thres", "prog_thres", NULL };
- int ret;
-
- idet->class = &idet_class;
- av_opt_set_defaults(idet);
-
- if ((ret = av_opt_set_from_string(idet, args, shorthand, "=", ":")) < 0)
- return ret;
idet->last_type = UNDETERMINED;
memset(idet->history, UNDETERMINED, HIST_SIZE);
@@ -312,6 +304,8 @@ static const AVFilterPad idet_outputs[] = {
{ NULL }
};
+static const char *const shorthand[] = { "intl_thres", "prog_thres", NULL };
+
AVFilter avfilter_vf_idet = {
.name = "idet",
.description = NULL_IF_CONFIG_SMALL("Interlace detect Filter."),
@@ -323,4 +317,5 @@ AVFilter avfilter_vf_idet = {
.inputs = idet_inputs,
.outputs = idet_outputs,
.priv_class = &idet_class,
+ .shorthand = shorthand,
};
More information about the ffmpeg-cvslog
mailing list