aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-03-24 09:02:10 +0100
committerClément Bœsch <ubitux@gmail.com>2013-03-24 12:26:24 +0100
commitcb0fb4d04df67367624a00f80ff0e73d67acafb0 (patch)
tree33b0b6dd26fcdcb95e8d070c2e206ef011539efd /libavfilter
parenta733481d0abc0320297fc3e1f7a57c0fdbcbe526 (diff)
downloadffmpeg-cb0fb4d04df67367624a00f80ff0e73d67acafb0.tar.gz
lavfi/fieldorder: use standard options parsing.
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_fieldorder.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/libavfilter/vf_fieldorder.c b/libavfilter/vf_fieldorder.c
index e9093a064a..1ef2ad8ab3 100644
--- a/libavfilter/vf_fieldorder.c
+++ b/libavfilter/vf_fieldorder.c
@@ -60,14 +60,6 @@ AVFILTER_DEFINE_CLASS(fieldorder);
static av_cold int init(AVFilterContext *ctx, const char *args)
{
FieldOrderContext *fieldorder = ctx->priv;
- int ret;
- static const char *shorthand[] = { "order", NULL };
-
- fieldorder->class = &fieldorder_class;
- av_opt_set_defaults(fieldorder);
-
- if ((ret = av_opt_set_from_string(fieldorder, args, shorthand, "=", ":")) < 0)
- return ret;
fieldorder->dst_tff = fieldorder->order == ORDER_TFF;
av_log(ctx, AV_LOG_VERBOSE, "tff:%d\n", fieldorder->dst_tff);
@@ -204,6 +196,8 @@ static const AVFilterPad avfilter_vf_fieldorder_outputs[] = {
{ NULL }
};
+static const char *const shorthand[] = { "order", NULL };
+
AVFilter avfilter_vf_fieldorder = {
.name = "fieldorder",
.description = NULL_IF_CONFIG_SMALL("Set the field order."),
@@ -213,4 +207,5 @@ AVFilter avfilter_vf_fieldorder = {
.inputs = avfilter_vf_fieldorder_inputs,
.outputs = avfilter_vf_fieldorder_outputs,
.priv_class = &fieldorder_class,
+ .shorthand = shorthand,
};