[FFmpeg-devel] [PATCH] avutil/mem: set default allocation limit to "unlimited"
wm4
nfxjfg at googlemail.com
Tue Mar 31 16:58:01 CEST 2015
On Tue, 31 Mar 2015 16:55:00 +0200
Michael Niedermayer <michaelni at gmx.at> wrote:
> 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
What's left is turning av_max_alloc() into a stub.
More information about the ffmpeg-devel
mailing list