summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-11-04 20:34:19 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-11-04 20:34:19 +0000
commite15aeea6565f0e6386db7738814fcdde46c2dec3 (patch)
tree91d372dcc385aa2107ba29c392e4723c59b46af9 /libavfilter
parenta6fdd5748fa015eaaf085695fc59240b6d0b9a7d (diff)
Implement avfilter_graph_alloc().
Originally committed as revision 25673 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/avfilter.h2
-rw-r--r--libavfilter/avfiltergraph.c5
-rw-r--r--libavfilter/avfiltergraph.h5
3 files changed, 11 insertions, 1 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index e8146e0b3a..ee1e0ad037 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -25,7 +25,7 @@
#include "libavutil/avutil.h"
#define LIBAVFILTER_VERSION_MAJOR 1
-#define LIBAVFILTER_VERSION_MINOR 54
+#define LIBAVFILTER_VERSION_MINOR 55
#define LIBAVFILTER_VERSION_MICRO 0
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index baffc5168b..6aa08157b5 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -26,6 +26,11 @@
#include "avfilter.h"
#include "avfiltergraph.h"
+AVFilterGraph *avfilter_graph_alloc(void)
+{
+ return av_mallocz(sizeof(AVFilterGraph));
+}
+
void avfilter_graph_destroy(AVFilterGraph *graph)
{
for(; graph->filter_count > 0; graph->filter_count --)
diff --git a/libavfilter/avfiltergraph.h b/libavfilter/avfiltergraph.h
index efb9cc02bc..0b08f026d2 100644
--- a/libavfilter/avfiltergraph.h
+++ b/libavfilter/avfiltergraph.h
@@ -32,6 +32,11 @@ typedef struct AVFilterGraph {
} AVFilterGraph;
/**
+ * Allocate a filter graph.
+ */
+AVFilterGraph *avfilter_graph_alloc(void);
+
+/**
* Get a filter instance with name name from graph.
*
* @return the pointer to the found filter instance or NULL if it