diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-03-13 09:09:36 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-04-09 19:13:19 +0200 |
commit | 8114c101607843a86960bd3e0e9c40487dc2a961 (patch) | |
tree | dadcd1b9f938365e634cd1c2b08500bd53953cd7 | |
parent | 4d1f31ea44f82adfb2b712534d71e27233a4f785 (diff) | |
download | ffmpeg-8114c101607843a86960bd3e0e9c40487dc2a961.tar.gz |
lavfi: add avfilter_get_class().
Useful for examining options, the same as the corresponding functions
for the other libs.
-rw-r--r-- | libavfilter/avfilter.c | 5 | ||||
-rw-r--r-- | libavfilter/avfilter.h | 7 |
2 files changed, 12 insertions, 0 deletions
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 */ |