From 2a24df9357f89a9fa9d5aaeb4d2a503fa545de27 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Sat, 16 Oct 2010 10:20:53 +0000 Subject: Add avfilter_graph_config(). Originally committed as revision 25502 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavfilter/avfiltergraph.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'libavfilter/avfiltergraph.c') 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; +} -- cgit v1.2.3