diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-05-06 23:53:06 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-05-06 23:53:06 +0200 |
commit | 39f66edbeae5ccabefe38b2fcb25d6c242d868c0 (patch) | |
tree | 0cc5e445e6e10361bf3d40ec3d793fa1a91a9adf /libavfilter/internal.h | |
parent | fa3eddc0110cb237cd57c3e82cafdbcbf798b3a1 (diff) | |
download | ffmpeg-39f66edbeae5ccabefe38b2fcb25d6c242d868c0.tar.gz |
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.h | 6 |
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. * |