diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-04-11 10:42:49 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-04-11 10:42:49 +0200 |
commit | 0965be00fe20e30912b3f51a32a3e435e9996f3e (patch) | |
tree | 037f76d71a619f6c746ba9bb49a307ebd7c8c9b3 | |
parent | c7b0a84e1fe1ba4415d5d578ddb9532d379201cf (diff) | |
parent | 4d1f31ea44f82adfb2b712534d71e27233a4f785 (diff) | |
download | ffmpeg-0965be00fe20e30912b3f51a32a3e435e9996f3e.tar.gz |
Merge commit '4d1f31ea44f82adfb2b712534d71e27233a4f785'
* commit '4d1f31ea44f82adfb2b712534d71e27233a4f785':
lavfi: make AVFilterContext export filter options.
Conflicts:
libavfilter/avfilter.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavfilter/avfilter.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index e96c8f2381..c441629d96 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -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; } |