lavfi: remove usage of deprecated av_opt_set_defaults2() function

Prefer av_opt_set_defaults() instead.
This commit is contained in:
Stefano Sabatini 2011-10-02 15:16:36 +02:00
parent f8a4075eb8
commit 91492bd1c4
4 changed files with 4 additions and 4 deletions

View File

@ -178,7 +178,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
int ret = 0; int ret = 0;
delogo->class = &delogo_class; delogo->class = &delogo_class;
av_opt_set_defaults2(delogo, 0, 0); av_opt_set_defaults(delogo);
if (args) if (args)
ret = sscanf(args, "%d:%d:%d:%d:%d", ret = sscanf(args, "%d:%d:%d:%d:%d",

View File

@ -113,7 +113,7 @@ static int init(AVFilterContext *ctx, const char *args, void *opaque)
int ret; int ret;
lut->class = &lut_class; 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_PHI] = M_PHI;
lut->var_values[VAR_PI] = M_PI; lut->var_values[VAR_PI] = M_PI;

View File

@ -270,7 +270,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
int ret; int ret;
test->class = &mptestsrc_class; 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) { if ((ret = (av_set_options_string(test, args, "=", ":"))) < 0) {
av_log(ctx, AV_LOG_ERROR, "Error parsing options string: '%s'\n", args); av_log(ctx, AV_LOG_ERROR, "Error parsing options string: '%s'\n", args);

View File

@ -73,7 +73,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
int64_t duration = -1; int64_t duration = -1;
int ret = 0; int ret = 0;
av_opt_set_defaults2(test, 0, 0); av_opt_set_defaults(test);
if ((ret = (av_set_options_string(test, args, "=", ":"))) < 0) { if ((ret = (av_set_options_string(test, args, "=", ":"))) < 0) {
av_log(ctx, AV_LOG_ERROR, "Error parsing options string: '%s'\n", args); av_log(ctx, AV_LOG_ERROR, "Error parsing options string: '%s'\n", args);