diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2011-10-02 15:16:36 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2011-10-02 15:16:36 +0200 |
commit | 91492bd1c490222f576d8dc6b5d3e6977e1ae78a (patch) | |
tree | 4dd6d1d9482cac2362ce4a5d96be9c2895c2483a | |
parent | f8a4075eb83e6b55fc1185421365181b009516ba (diff) | |
download | ffmpeg-91492bd1c490222f576d8dc6b5d3e6977e1ae78a.tar.gz |
lavfi: remove usage of deprecated av_opt_set_defaults2() function
Prefer av_opt_set_defaults() instead.
-rw-r--r-- | libavfilter/vf_delogo.c | 2 | ||||
-rw-r--r-- | libavfilter/vf_lut.c | 2 | ||||
-rw-r--r-- | libavfilter/vsrc_mptestsrc.c | 2 | ||||
-rw-r--r-- | libavfilter/vsrc_testsrc.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/libavfilter/vf_delogo.c b/libavfilter/vf_delogo.c index f0852f8950..efeb83af46 100644 --- a/libavfilter/vf_delogo.c +++ b/libavfilter/vf_delogo.c @@ -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", diff --git a/libavfilter/vf_lut.c b/libavfilter/vf_lut.c index bc74a9d489..15f2c774f8 100644 --- a/libavfilter/vf_lut.c +++ b/libavfilter/vf_lut.c @@ -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; diff --git a/libavfilter/vsrc_mptestsrc.c b/libavfilter/vsrc_mptestsrc.c index a96b1891cf..074bf9441f 100644 --- a/libavfilter/vsrc_mptestsrc.c +++ b/libavfilter/vsrc_mptestsrc.c @@ -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); diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c index 5dee1d172f..0f38ca5bc1 100644 --- a/libavfilter/vsrc_testsrc.c +++ b/libavfilter/vsrc_testsrc.c @@ -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); |