summaryrefslogtreecommitdiff
path: root/libavfilter/avfiltergraph.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-10-16 10:20:53 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-10-16 10:20:53 +0000
commit2a24df9357f89a9fa9d5aaeb4d2a503fa545de27 (patch)
treeedf609a58f5e117da1fdd04c27a0a79a217de502 /libavfilter/avfiltergraph.c
parent0b6d358a09ef4dcffb42e54796985685cbb6b21e (diff)
Add avfilter_graph_config().
Originally committed as revision 25502 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/avfiltergraph.c')
-rw-r--r--libavfilter/avfiltergraph.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index 2123c2806c..baffc5168b 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -202,3 +202,16 @@ int avfilter_graph_config_formats(AVFilterGraph *graph, AVClass *log_ctx)
return 0;
}
+int avfilter_graph_config(AVFilterGraph *graphctx, AVClass *log_ctx)
+{
+ int ret;
+
+ if ((ret = avfilter_graph_check_validity(graphctx, log_ctx)))
+ return ret;
+ if ((ret = avfilter_graph_config_formats(graphctx, log_ctx)))
+ return ret;
+ if ((ret = avfilter_graph_config_links(graphctx, log_ctx)))
+ return ret;
+
+ return 0;
+}