| @@ -508,10 +508,8 @@ static av_cold int test_init(AVFilterContext *ctx, const char *args) · 507 unmodified lines |
| 508 | 508 | { |
| 509 | 509 | TestSourceContext *test = ctx->priv; |
| 510 | 510 | |
| 511 | | − test->class = &testsrc_class; |
| 512 | 511 | test->fill_picture_fn = test_fill_picture; |
| 513 | | − av_opt_set_defaults(test); |
| 514 | | − return init(ctx, args); |
| 512 | + return init(ctx, NULL); |
| 515 | 513 | } |
| 516 | 514 | |
| 517 | 515 | static int test_query_formats(AVFilterContext *ctx) |
| @@ -534,17 +532,17 @@ static const AVFilterPad avfilter_vsrc_testsrc_outputs[] = { · 16 unmodified lines |
| 534 | 532 | }; |
| 535 | 533 | |
| 536 | 534 | AVFilter avfilter_vsrc_testsrc = { |
| 537 | | − .name = "testsrc", |
| 538 | | − .description = NULL_IF_CONFIG_SMALL("Generate test pattern."), |
| 539 | | − .priv_size = sizeof(TestSourceContext), |
| 540 | | − .init = test_init, |
| 541 | | − .uninit = uninit, |
| 535 | + .name = "testsrc", |
| 536 | + .description = NULL_IF_CONFIG_SMALL("Generate test pattern."), |
| 537 | + .priv_size = sizeof(TestSourceContext), |
| 538 | + .priv_class = &testsrc_class, |
| 539 | + .init = test_init, |
| 540 | + .uninit = uninit, |
| 542 | 541 | |
| 543 | | − .query_formats = test_query_formats, |
| 542 | + .query_formats = test_query_formats, |
| 544 | 543 | |
| 545 | 544 | .inputs = NULL, |
| 546 | 545 | .outputs = avfilter_vsrc_testsrc_outputs, |
| 547 | | − .priv_class = &testsrc_class, |
| 548 | 546 | }; |
| 549 | 547 | |
| 550 | 548 | #endif /* CONFIG_TESTSRC_FILTER */ |
| @@ -615,10 +613,8 @@ static av_cold int rgbtest_init(AVFilterContext *ctx, const char *args) · 64 unmodified lines |
| 615 | 613 | TestSourceContext *test = ctx->priv; |
| 616 | 614 | |
| 617 | 615 | test->draw_once = 1; |
| 618 | | − test->class = &rgbtestsrc_class; |
| 619 | 616 | test->fill_picture_fn = rgbtest_fill_picture; |
| 620 | | − av_opt_set_defaults(test); |
| 621 | | − return init(ctx, args); |
| 617 | + return init(ctx, NULL); |
| 622 | 618 | } |
| 623 | 619 | |
| 624 | 620 | static int rgbtest_query_formats(AVFilterContext *ctx) |
| @@ -654,18 +650,18 @@ static const AVFilterPad avfilter_vsrc_rgbtestsrc_outputs[] = { · 29 unmodified lines |
| 654 | 650 | }; |
| 655 | 651 | |
| 656 | 652 | AVFilter avfilter_vsrc_rgbtestsrc = { |
| 657 | | − .name = "rgbtestsrc", |
| 658 | | − .description = NULL_IF_CONFIG_SMALL("Generate RGB test pattern."), |
| 659 | | − .priv_size = sizeof(TestSourceContext), |
| 660 | | − .init = rgbtest_init, |
| 661 | | − .uninit = uninit, |
| 653 | + .name = "rgbtestsrc", |
| 654 | + .description = NULL_IF_CONFIG_SMALL("Generate RGB test pattern."), |
| 655 | + .priv_size = sizeof(TestSourceContext), |
| 656 | + .priv_class = &rgbtestsrc_class, |
| 657 | + .init = rgbtest_init, |
| 658 | + .uninit = uninit, |
| 662 | 659 | |
| 663 | | − .query_formats = rgbtest_query_formats, |
| 660 | + .query_formats = rgbtest_query_formats, |
| 664 | 661 | |
| 665 | 662 | .inputs = NULL, |
| 666 | 663 | |
| 667 | 664 | .outputs = avfilter_vsrc_rgbtestsrc_outputs, |
| 668 | | − .priv_class = &rgbtestsrc_class, |
| 669 | 665 | }; |
| 670 | 666 | |
| 671 | 667 | #endif /* CONFIG_RGBTESTSRC_FILTER */ |