Browse Source

lavfi: remove usage of deprecated av_opt_set_defaults2() function

Prefer av_opt_set_defaults() instead.
Stefano Sabatini 13 years ago
parent
commit
91492bd1c4
4 changed files with 4 additions and 4 deletions
  1. 1 1
      libavfilter/vf_delogo.c
  2. 1 1
      libavfilter/vf_lut.c
  3. 1 1
      libavfilter/vsrc_mptestsrc.c
  4. 1 1
      libavfilter/vsrc_testsrc.c

+ 1 - 1
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",

+ 1 - 1
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;

+ 1 - 1
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);

+ 1 - 1
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);