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

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Mar 31 17:53:36 CEST 2015


Michael Niedermayer <michaelni <at> gmx.at> writes:

> -static size_t max_alloc_size= INT_MAX;
> +static size_t max_alloc_size= SIZE_MAX;

What would this fix?

I remember several reports about FFmpeg "leaking" 
memory where the users just meant that one of 
the libraries allocated more memory than the 
user meant is sane, sometimes even using the 
magical signs "DOS".
I don't remember a report about 16kx16k being 
too small...

(I really don't care and certainly don't object)

Carl Eugen



More information about the ffmpeg-devel mailing list