[FFmpeg-cvslog] lavfi: remove usage of deprecated av_opt_set_defaults2() function
Stefano Sabatini
git at videolan.org
Sun Oct 2 15:22:16 CEST 2011
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Sun Oct 2 15:16:36 2011 +0200| [91492bd1c490222f576d8dc6b5d3e6977e1ae78a] | committer: Stefano Sabatini
lavfi: remove usage of deprecated av_opt_set_defaults2() function
Prefer av_opt_set_defaults() instead.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=91492bd1c490222f576d8dc6b5d3e6977e1ae78a
---
libavfilter/vf_delogo.c | 2 +-
libavfilter/vf_lut.c | 2 +-
libavfilter/vsrc_mptestsrc.c | 2 +-
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 f0852f8..efeb83a 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 bc74a9d..15f2c77 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 a96b189..074bf94 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 5dee1d1..0f38ca5 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);
More information about the ffmpeg-cvslog
mailing list