]> git.sesse.net Git - ffmpeg/commitdiff
lavfi/ebur128: switch to an AVOptions-based system.
authorClément Bœsch <ubitux@gmail.com>
Wed, 10 Apr 2013 20:13:12 +0000 (22:13 +0200)
committerClément Bœsch <ubitux@gmail.com>
Wed, 10 Apr 2013 21:16:02 +0000 (23:16 +0200)
doc/filters.texi
libavfilter/avfilter.c
libavfilter/f_ebur128.c

index 561cdeeb0da5e9a493a5a4994bce6d76d7fdd3e4..11554637125a8a24bfc43aa62b936b8ad9ef75ec 100644 (file)
@@ -6845,7 +6845,7 @@ the momentary loudness (400 milliseconds).
 More information about the Loudness Recommendation EBU R128 on
 @url{http://tech.ebu.ch/loudness}.
 
-The filter accepts the following named parameters:
+The filter accepts the following options:
 
 @table @option
 
index 130fccfaf29b0a2c1bb1142f88003750d4158aae..6ec944b467251e4c0e0dbb01e8137dfec792acfd 100644 (file)
@@ -664,6 +664,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
         !strcmp(filter->filter->name,  "delogo"    ) ||
         !strcmp(filter->filter->name,  "drawbox"   ) ||
         !strcmp(filter->filter->name,  "drawtext"  ) ||
+        !strcmp(filter->filter->name,  "ebur128"   ) ||
         !strcmp(filter->filter->name,  "fade"      ) ||
         !strcmp(filter->filter->name,  "fieldorder") ||
         !strcmp(filter->filter->name,  "fps"       ) ||
index 0c7f7714b40619b53096f74c99805c516ae8fe10..2ff92a33c82f7a67dfc1c70984fbd306eb601515 100644 (file)
@@ -405,16 +405,9 @@ static struct hist_entry *get_histogram(void)
 
 static av_cold int init(AVFilterContext *ctx, const char *args)
 {
-    int ret;
     EBUR128Context *ebur128 = ctx->priv;
     AVFilterPad pad;
 
-    ebur128->class = &ebur128_class;
-    av_opt_set_defaults(ebur128);
-
-    if ((ret = av_set_options_string(ebur128, args, "=", ":")) < 0)
-        return ret;
-
     if (ebur128->loglevel != AV_LOG_INFO &&
         ebur128->loglevel != AV_LOG_VERBOSE) {
         if (ebur128->do_video || ebur128->metadata)