aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/f_settb.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-04-11 11:48:42 +0200
committerClément Bœsch <ubitux@gmail.com>2013-04-11 11:53:53 +0200
commit73c1a00e73fbfcf27ce6fb474e3080ac0b1b445b (patch)
tree479b0b438925e681bb3351566ee3b00762a86017 /libavfilter/f_settb.c
parentcb2327e88d662e3c1da812bc18e9c504d068dd74 (diff)
downloadffmpeg-73c1a00e73fbfcf27ce6fb474e3080ac0b1b445b.tar.gz
lavfi/asettb: switch to an AVOptions-based system.
Diffstat (limited to 'libavfilter/f_settb.c')
-rw-r--r--libavfilter/f_settb.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libavfilter/f_settb.c b/libavfilter/f_settb.c
index df03274dcb..b1eac716e3 100644
--- a/libavfilter/f_settb.c
+++ b/libavfilter/f_settb.c
@@ -60,7 +60,9 @@ typedef struct {
#define OFFSET(x) offsetof(SetTBContext, x)
#define DEFINE_OPTIONS(filt_name, filt_type) \
static const AVOption filt_name##_options[] = { \
- { "tb", "Expression determining the output timebase", OFFSET(tb_expr), AV_OPT_TYPE_STRING, {.str="intb"}, \
+ { "expr", "set expression determining the output timebase", OFFSET(tb_expr), AV_OPT_TYPE_STRING, {.str="intb"}, \
+ .flags=AV_OPT_FLAG_##filt_type##_PARAM|AV_OPT_FLAG_FILTERING_PARAM }, \
+ { "tb", "set expression determining the output timebase", OFFSET(tb_expr), AV_OPT_TYPE_STRING, {.str="intb"}, \
.flags=AV_OPT_FLAG_##filt_type##_PARAM|AV_OPT_FLAG_FILTERING_PARAM }, \
{ NULL } \
}
@@ -118,8 +120,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
return ff_filter_frame(outlink, frame);
}
-static const char *const shorthand[] = { "tb", NULL };
-
#if CONFIG_SETTB_FILTER
DEFINE_OPTIONS(settb, VIDEO);
@@ -188,6 +188,5 @@ AVFilter avfilter_af_asettb = {
.inputs = avfilter_af_asettb_inputs,
.outputs = avfilter_af_asettb_outputs,
.priv_class = &asettb_class,
- .shorthand = shorthand,
};
#endif