[FFmpeg-cvslog] lavfi/smptebars: switch to AVOptions-based system

Paul B Mahol git at videolan.org
Thu Apr 11 14:24:26 CEST 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Apr 11 12:21:27 2013 +0000| [38d1a5a27024b90523f9c688677f423ed67e4649] | committer: Paul B Mahol

lavfi/smptebars: switch to AVOptions-based system

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=38d1a5a27024b90523f9c688677f423ed67e4649
---

 libavfilter/avfilter.c     |    1 -
 libavfilter/vsrc_testsrc.c |    6 ------
 2 files changed, 7 deletions(-)

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 3898529..3f5eb45 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -694,7 +694,6 @@ static const char *const filters_left_to_update[] = {
     "sendcmd",
     "setdar",
     "setsar",
-    "smptebars",
 };
 
 static int filter_use_deprecated_init(const char *name)
diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c
index 1645500..6d4461d 100644
--- a/libavfilter/vsrc_testsrc.c
+++ b/libavfilter/vsrc_testsrc.c
@@ -108,9 +108,6 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
     TestSourceContext *test = ctx->priv;
     int ret = 0;
 
-    if ((ret = (av_set_options_string(test, args, "=", ":"))) < 0)
-        return ret;
-
     test->duration = -1;
     if (test->duration_str &&
         (ret = av_parse_time(&test->duration, test->duration_str, 1)) < 0) {
@@ -151,7 +148,6 @@ static av_cold void uninit(AVFilterContext *ctx)
 {
     TestSourceContext *test = ctx->priv;
 
-    av_opt_free(test);
     av_frame_free(&test->picref);
 }
 
@@ -762,10 +758,8 @@ static av_cold int smptebars_init(AVFilterContext *ctx, const char *args)
 {
     TestSourceContext *test = ctx->priv;
 
-    test->class = &smptebars_class;
     test->fill_picture_fn = smptebars_fill_picture;
     test->draw_once = 1;
-    av_opt_set_defaults(test);
     return init(ctx, args);
 }
 



More information about the ffmpeg-cvslog mailing list