diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-25 18:43:58 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-12-25 18:55:43 +0100 |
commit | 5a8e994287d8ef181c0a5eac537547d7059b4524 (patch) | |
tree | b1dd9dd0e6812e4a13f97ac8e09cb464cc4a71d0 /libavutil/mem.h | |
parent | 5e9a56a0350c518cd4b38845aff49d41a9c952ae (diff) | |
download | ffmpeg-5a8e994287d8ef181c0a5eac537547d7059b4524.tar.gz |
mem: add av_max_alloc() to limit the maximum amount that may be allocated in one piece
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/mem.h')
-rw-r--r-- | libavutil/mem.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavutil/mem.h b/libavutil/mem.h index f148c637bb..c6c907ea08 100644 --- a/libavutil/mem.h +++ b/libavutil/mem.h @@ -177,6 +177,11 @@ static inline int av_size_mult(size_t a, size_t b, size_t *r) } /** + * Set the maximum size that may me allocated in one block. + */ +void av_max_alloc(size_t max); + +/** * @} */ |