From 8114c101607843a86960bd3e0e9c40487dc2a961 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 13 Mar 2013 09:09:36 +0100 Subject: [PATCH] lavfi: add avfilter_get_class(). Useful for examining options, the same as the corresponding functions for the other libs. --- libavfilter/avfilter.c | 5 +++++ libavfilter/avfilter.h | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 2fe8dfbe5c..ccf4950c96 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -693,3 +693,8 @@ int ff_filter_frame(AVFilterLink *link, AVFrame *frame) return filter_frame(link, out); } + +const AVClass *avfilter_get_class(void) +{ + return &avfilter_class; +} diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index 28d3684b14..f0b79f5957 100644 --- a/libavfilter/avfilter.h +++ b/libavfilter/avfilter.h @@ -690,4 +690,11 @@ attribute_deprecated int avfilter_copy_buf_props(AVFrame *dst, const AVFilterBufferRef *src); #endif +/** + * @return AVClass for AVFilterContext. + * + * @see av_opt_find(). + */ +const AVClass *avfilter_get_class(void); + #endif /* AVFILTER_AVFILTER_H */