[FFmpeg-devel] [PATCH] avutil/mem: set default allocation limit to "unlimited"

Michael Niedermayer michaelni at gmx.at
Tue Mar 31 16:55:00 CEST 2015


Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavutil/mem.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/mem.c b/libavutil/mem.c
index 5fd2395..2849188 100644
--- a/libavutil/mem.c
+++ b/libavutil/mem.c
@@ -66,7 +66,7 @@ void  free(void *ptr);
  * dynamic libraries and remove -Wl,-Bsymbolic from the linker flags.
  * Note that this will cost performance. */
 
-static size_t max_alloc_size= INT_MAX;
+static size_t max_alloc_size= SIZE_MAX;
 
 void av_max_alloc(size_t max){
     max_alloc_size = max;
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list