提交 5afd58fb 编写于 作者: C Clément Bœsch

lavfi/ebur128: switch to an AVOptions-based system.

上级 4964ec2c
...@@ -6845,7 +6845,7 @@ the momentary loudness (400 milliseconds). ...@@ -6845,7 +6845,7 @@ the momentary loudness (400 milliseconds).
More information about the Loudness Recommendation EBU R128 on More information about the Loudness Recommendation EBU R128 on
@url{http://tech.ebu.ch/loudness}. @url{http://tech.ebu.ch/loudness}.
The filter accepts the following named parameters: The filter accepts the following options:
@table @option @table @option
......
...@@ -664,6 +664,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque ...@@ -664,6 +664,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
!strcmp(filter->filter->name, "delogo" ) || !strcmp(filter->filter->name, "delogo" ) ||
!strcmp(filter->filter->name, "drawbox" ) || !strcmp(filter->filter->name, "drawbox" ) ||
!strcmp(filter->filter->name, "drawtext" ) || !strcmp(filter->filter->name, "drawtext" ) ||
!strcmp(filter->filter->name, "ebur128" ) ||
!strcmp(filter->filter->name, "fade" ) || !strcmp(filter->filter->name, "fade" ) ||
!strcmp(filter->filter->name, "fieldorder") || !strcmp(filter->filter->name, "fieldorder") ||
!strcmp(filter->filter->name, "fps" ) || !strcmp(filter->filter->name, "fps" ) ||
......
...@@ -405,16 +405,9 @@ static struct hist_entry *get_histogram(void) ...@@ -405,16 +405,9 @@ static struct hist_entry *get_histogram(void)
static av_cold int init(AVFilterContext *ctx, const char *args) static av_cold int init(AVFilterContext *ctx, const char *args)
{ {
int ret;
EBUR128Context *ebur128 = ctx->priv; EBUR128Context *ebur128 = ctx->priv;
AVFilterPad pad; 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 && if (ebur128->loglevel != AV_LOG_INFO &&
ebur128->loglevel != AV_LOG_VERBOSE) { ebur128->loglevel != AV_LOG_VERBOSE) {
if (ebur128->do_video || ebur128->metadata) if (ebur128->do_video || ebur128->metadata)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册