Commit 44d44883 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '8114c101'

* commit '8114c101':
  lavfi: add avfilter_get_class().

Conflicts:
	libavfilter/avfilter.h
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 0965be00 8114c101
...@@ -490,11 +490,6 @@ static const AVClass avfilter_class = { ...@@ -490,11 +490,6 @@ static const AVClass avfilter_class = {
.child_class_next = filter_child_class_next, .child_class_next = filter_child_class_next,
}; };
const AVClass *avfilter_get_class(void)
{
return &avfilter_class;
}
int avfilter_open(AVFilterContext **filter_ctx, AVFilter *filter, const char *inst_name) int avfilter_open(AVFilterContext **filter_ctx, AVFilter *filter, const char *inst_name)
{ {
AVFilterContext *ret; AVFilterContext *ret;
...@@ -1038,3 +1033,8 @@ int ff_filter_frame(AVFilterLink *link, AVFrame *frame) ...@@ -1038,3 +1033,8 @@ int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
return ff_filter_frame_framed(link, frame); return ff_filter_frame_framed(link, frame);
} }
} }
const AVClass *avfilter_get_class(void)
{
return &avfilter_class;
}
...@@ -60,11 +60,6 @@ const char *avfilter_configuration(void); ...@@ -60,11 +60,6 @@ const char *avfilter_configuration(void);
*/ */
const char *avfilter_license(void); const char *avfilter_license(void);
/**
* Get the class for the AVFilterContext struct.
*/
const AVClass *avfilter_get_class(void);
typedef struct AVFilterContext AVFilterContext; typedef struct AVFilterContext AVFilterContext;
typedef struct AVFilterLink AVFilterLink; typedef struct AVFilterLink AVFilterLink;
typedef struct AVFilterPad AVFilterPad; typedef struct AVFilterPad AVFilterPad;
...@@ -911,7 +906,13 @@ int avfilter_copy_buf_props(AVFrame *dst, const AVFilterBufferRef *src); ...@@ -911,7 +906,13 @@ int avfilter_copy_buf_props(AVFrame *dst, const AVFilterBufferRef *src);
#endif #endif
/** /**
* @} * @return AVClass for AVFilterContext.
*
* @see av_opt_find().
*/ */
const AVClass *avfilter_get_class(void);
/**
* @}
*/
#endif /* AVFILTER_AVFILTER_H */ #endif /* AVFILTER_AVFILTER_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment