1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-11-23 21:54:53 +02:00

AVFilter: use picture pool to avoid malloc().

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2011-05-06 23:53:06 +02:00
parent fa3eddc011
commit 39f66edbea
4 changed files with 71 additions and 2 deletions

View File

@@ -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.
*