提交 0965be00 编写于 作者: M Michael Niedermayer

Merge commit '4d1f31ea'

* commit '4d1f31ea':
  lavfi: make AVFilterContext export filter options.

Conflicts:
	libavfilter/avfilter.c
Merged-by: NMichael Niedermayer <michaelni@gmx.at>
......@@ -456,28 +456,28 @@ static const char *default_filter_name(void *filter_ctx)
static void *filter_child_next(void *obj, void *prev)
{
AVFilterContext *ctx = obj;
if (!prev && ctx->filter && ctx->filter->priv_class)
if (!prev && ctx->filter && ctx->filter->priv_class && ctx->priv)
return ctx->priv;
return NULL;
}
static const AVClass *filter_child_class_next(const AVClass *prev)
{
AVFilter **filter_ptr = NULL;
AVFilter **f = NULL;
/* find the filter that corresponds to prev */
while (prev && *(filter_ptr = av_filter_next(filter_ptr)))
if ((*filter_ptr)->priv_class == prev)
while (prev && *(f = av_filter_next(f)))
if ((*f)->priv_class == prev)
break;
/* could not find filter corresponding to prev */
if (prev && !(*filter_ptr))
if (prev && !(*f))
return NULL;
/* find next filter with specific options */
while (*(filter_ptr = av_filter_next(filter_ptr)))
if ((*filter_ptr)->priv_class)
return (*filter_ptr)->priv_class;
while (*(f = av_filter_next(f)))
if ((*f)->priv_class)
return (*f)->priv_class;
return NULL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册