Commit 38d1a5a2 authored by Paul B Mahol's avatar Paul B Mahol

lavfi/smptebars: switch to AVOptions-based system

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 3c2e4c2a
......@@ -694,7 +694,6 @@ static const char *const filters_left_to_update[] = {
"sendcmd",
"setdar",
"setsar",
"smptebars",
};
static int filter_use_deprecated_init(const char *name)
......
......@@ -108,9 +108,6 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
TestSourceContext *test = ctx->priv;
int ret = 0;
if ((ret = (av_set_options_string(test, args, "=", ":"))) < 0)
return ret;
test->duration = -1;
if (test->duration_str &&
(ret = av_parse_time(&test->duration, test->duration_str, 1)) < 0) {
......@@ -151,7 +148,6 @@ static av_cold void uninit(AVFilterContext *ctx)
{
TestSourceContext *test = ctx->priv;
av_opt_free(test);
av_frame_free(&test->picref);
}
......@@ -762,10 +758,8 @@ static av_cold int smptebars_init(AVFilterContext *ctx, const char *args)
{
TestSourceContext *test = ctx->priv;
test->class = &smptebars_class;
test->fill_picture_fn = smptebars_fill_picture;
test->draw_once = 1;
av_opt_set_defaults(test);
return init(ctx, args);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment