summaryrefslogtreecommitdiff
path: root/libavfilter/internal.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-05-06 23:53:06 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-05-06 23:53:06 +0200
commit39f66edbeae5ccabefe38b2fcb25d6c242d868c0 (patch)
tree0cc5e445e6e10361bf3d40ec3d793fa1a91a9adf /libavfilter/internal.h
parentfa3eddc0110cb237cd57c3e82cafdbcbf798b3a1 (diff)
AVFilter: use picture pool to avoid malloc().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/internal.h')
-rw-r--r--libavfilter/internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavfilter/internal.h b/libavfilter/internal.h
index 188da87099..159e979168 100644
--- a/libavfilter/internal.h
+++ b/libavfilter/internal.h
@@ -27,6 +27,12 @@
#include "avfilter.h"
#include "avfiltergraph.h"
+#define POOL_SIZE 32
+typedef struct AVFilterPool {
+ AVFilterBufferRef *pic[POOL_SIZE];
+ int count;
+}AVFilterPool;
+
/**
* Check for the validity of graph.
*