You've already forked FFmpeg
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:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user