@@ -1162,6 +1162,13 @@ char *avfilter_graph_dump(AVFilterGraph *graph, const char *options);
int avfilter_graph_request_oldest(AVFilterGraph *graph);
/**
+ * @return AVClass for AVFilterGraph.
+ *
+ * @see av_opt_find().
+ */
+const AVClass *avfilter_graph_get_class(void);
+
+/**
* @}
*/
@@ -1453,3 +1453,8 @@ int ff_filter_graph_run_once(AVFilterGraph *graph)
return AVERROR(EAGAIN);
return ff_filter_activate(filter);
}
+
+const AVClass *avfilter_graph_get_class(void)
+{
+ return &filtergraph_class;
+}
add new avfilter_graph_get_class for AVFilterGraph options. Signed-off-by: Jun Zhao <mypopydev@gmail.com> --- libavfilter/avfilter.h | 7 +++++++ libavfilter/avfiltergraph.c | 5 +++++ 2 files changed, 12 insertions(+), 0 deletions(-)