From 721a4efc0545548a241080b53ab480e34f366240 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 9 Jan 2016 09:25:32 +0100 Subject: buffer: add support for pools using caller data in allocation This should allow using more complex allocators than simple malloc wrappers. --- libavutil/buffer_internal.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavutil/buffer_internal.h') diff --git a/libavutil/buffer_internal.h b/libavutil/buffer_internal.h index 1032a543e5..64344d8262 100644 --- a/libavutil/buffer_internal.h +++ b/libavutil/buffer_internal.h @@ -88,7 +88,10 @@ struct AVBufferPool { volatile int refcount; int size; + void *opaque; AVBufferRef* (*alloc)(int size); + AVBufferRef* (*alloc2)(void *opaque, int size); + void (*pool_free)(void *opaque); }; #endif /* AVUTIL_BUFFER_INTERNAL_H */ -- cgit v1.2.3