From 38d1a5a27024b90523f9c688677f423ed67e4649 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Thu, 11 Apr 2013 12:21:27 +0000 Subject: lavfi/smptebars: switch to AVOptions-based system Signed-off-by: Paul B Mahol --- libavfilter/vsrc_testsrc.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'libavfilter/vsrc_testsrc.c') diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c index 16455003d7..6d4461da75 100644 --- a/libavfilter/vsrc_testsrc.c +++ b/libavfilter/vsrc_testsrc.c @@ -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); } -- cgit v1.2.3