Commit 91492bd1 authored by Stefano Sabatini's avatar Stefano Sabatini

lavfi: remove usage of deprecated av_opt_set_defaults2() function

Prefer av_opt_set_defaults() instead.
parent f8a4075e
......@@ -178,7 +178,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
int ret = 0;
delogo->class = &delogo_class;
av_opt_set_defaults2(delogo, 0, 0);
av_opt_set_defaults(delogo);
if (args)
ret = sscanf(args, "%d:%d:%d:%d:%d",
......
......@@ -113,7 +113,7 @@ static int init(AVFilterContext *ctx, const char *args, void *opaque)
int ret;
lut->class = &lut_class;
av_opt_set_defaults2(lut, 0, 0);
av_opt_set_defaults(lut);
lut->var_values[VAR_PHI] = M_PHI;
lut->var_values[VAR_PI] = M_PI;
......
......@@ -270,7 +270,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
int ret;
test->class = &mptestsrc_class;
av_opt_set_defaults2(test, 0, 0);
av_opt_set_defaults(test);
if ((ret = (av_set_options_string(test, args, "=", ":"))) < 0) {
av_log(ctx, AV_LOG_ERROR, "Error parsing options string: '%s'\n", args);
......
......@@ -73,7 +73,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
int64_t duration = -1;
int ret = 0;
av_opt_set_defaults2(test, 0, 0);
av_opt_set_defaults(test);
if ((ret = (av_set_options_string(test, args, "=", ":"))) < 0) {
av_log(ctx, AV_LOG_ERROR, "Error parsing options string: '%s'\n", 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