lavfi/blend: use standard options parsing

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2013-04-05 00:12:22 +00:00
parent a95e683867
commit 2b26077c95
1 changed files with 3 additions and 6 deletions

View File

@ -225,12 +225,6 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
BlendContext *b = ctx->priv; BlendContext *b = ctx->priv;
int ret, plane; int ret, plane;
b->class = &blend_class;
av_opt_set_defaults(b);
if ((ret = av_set_options_string(b, args, "=", ":")) < 0)
return ret;
for (plane = 0; plane < FF_ARRAY_ELEMS(b->params); plane++) { for (plane = 0; plane < FF_ARRAY_ELEMS(b->params); plane++) {
FilterParams *param = &b->params[plane]; FilterParams *param = &b->params[plane];
@ -460,6 +454,8 @@ static const AVFilterPad blend_outputs[] = {
{ NULL } { NULL }
}; };
static const char *const shorthand[] = { NULL };
AVFilter avfilter_vf_blend = { AVFilter avfilter_vf_blend = {
.name = "blend", .name = "blend",
.description = NULL_IF_CONFIG_SMALL("Blend two video frames into each other."), .description = NULL_IF_CONFIG_SMALL("Blend two video frames into each other."),
@ -470,4 +466,5 @@ AVFilter avfilter_vf_blend = {
.inputs = blend_inputs, .inputs = blend_inputs,
.outputs = blend_outputs, .outputs = blend_outputs,
.priv_class = &blend_class, .priv_class = &blend_class,
.shorthand = shorthand,
}; };