[FFmpeg-devel,2/4] lavfi: add new function avfilter_graph_get_class.

Submitted by Jun Zhao on Aug. 13, 2018, 1:51 p.m.

Details

Message ID 1534168307-6856-3-git-send-email-mypopydev@gmail.com
State New
Headers show

Commit Message

Jun Zhao Aug. 13, 2018, 1:51 p.m.
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(-)

Patch hide | download patch | download mbox

diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index 9d70e71..7c307df 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -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);
+
+/**
  * @}
  */
 
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index a149f8f..8737224 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -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;
+}