]> granicus.if.org Git - libvpx/commit
Bound the total allocated memory of frame buffer
authorkyslov <kyslov@google.com>
Fri, 21 Dec 2018 20:04:04 +0000 (12:04 -0800)
committerkyslov <kyslov@google.com>
Fri, 21 Dec 2018 22:00:02 +0000 (14:00 -0800)
commite6d2dc12adcabb5e387188f616f31e3219660029
treee6584a2a5a103a60ae21c70da1265bfd1f105a63
parent1cb039529d4c1b535093c759850835fae794d424
Bound the total allocated memory of frame buffer

This CL allows to limit memory consumption of the frame buffer pool. As
the result if compiled with VPX_MAX_ALLOCABLE_MEMORY set codec will fail
if frame resolution requires more memory
This is backported CL aae2183cb58b60d01b8e4e15269ee9f48dd72908 from
aomedia

Tested:
configure --extra-cflags="-DVPX_MAX_ALLOCABLE_MEMORY=536870912"
make
./test_libvpx

BUG=webm:1579

Change-Id: Ic62213b600a7562917d5a339a344ad8db4b6f481
vpx_scale/generic/yv12config.c