diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-10-16 10:20:53 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-10-16 10:20:53 +0000 |
commit | 2a24df9357f89a9fa9d5aaeb4d2a503fa545de27 (patch) | |
tree | edf609a58f5e117da1fdd04c27a0a79a217de502 /libavfilter | |
parent | 0b6d358a09ef4dcffb42e54796985685cbb6b21e (diff) | |
download | ffmpeg-2a24df9357f89a9fa9d5aaeb4d2a503fa545de27.tar.gz |
Add avfilter_graph_config().
Originally committed as revision 25502 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/avfilter.h | 4 | ||||
-rw-r--r-- | libavfilter/avfiltergraph.c | 13 | ||||
-rw-r--r-- | libavfilter/avfiltergraph.h | 8 |
3 files changed, 23 insertions, 2 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index f29ebe7f6c..94928c5cd2 100644 --- a/libavfilter/avfilter.h +++ b/libavfilter/avfilter.h @@ -25,8 +25,8 @@ #include "libavutil/avutil.h" #define LIBAVFILTER_VERSION_MAJOR 1 -#define LIBAVFILTER_VERSION_MINOR 51 -#define LIBAVFILTER_VERSION_MICRO 1 +#define LIBAVFILTER_VERSION_MINOR 52 +#define LIBAVFILTER_VERSION_MICRO 0 #define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \ LIBAVFILTER_VERSION_MINOR, \ 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; +} diff --git a/libavfilter/avfiltergraph.h b/libavfilter/avfiltergraph.h index 23fc57c311..efb9cc02bc 100644 --- a/libavfilter/avfiltergraph.h +++ b/libavfilter/avfiltergraph.h @@ -70,6 +70,14 @@ int avfilter_graph_config_links(AVFilterGraph *graphctx, AVClass *log_ctx); int avfilter_graph_config_formats(AVFilterGraph *graphctx, AVClass *log_ctx); /** + * Check validity and configure all the links and formats in the graph. + * + * @see avfilter_graph_check_validity(), avfilter_graph_config_links(), + * avfilter_graph_config_formats() + */ +int avfilter_graph_config(AVFilterGraph *graphctx, AVClass *log_ctx); + +/** * Free a graph and destroy its links. */ void avfilter_graph_destroy(AVFilterGraph *graph); |