allow config options to limit max size of decode

This is a practical concern to allow us to fail in a decoder instance
if the size of a file is bigger than we can reasonably handle.

Change-Id: I0446b5502b1f8a48408107648ff2a8d187dca393
This commit is contained in:
Jim Bankoski
2014-07-17 06:31:50 -07:00
committed by Gerrit Code Review
parent 1a01194ab5
commit 943e43273b
9 changed files with 152 additions and 3 deletions

3
configure vendored
View File

@@ -26,6 +26,7 @@ Advanced options:
${toggle_unit_tests} unit tests
${toggle_decode_perf_tests} build decoder perf tests with unit tests
--libc=PATH path to alternate libc
--size-limit=WxH max size to allow in the decoder
--as={yasm|nasm|auto} use specified assembler [auto, yasm preferred]
--sdk-path=PATH path to root of sdk (android builds only)
${toggle_fast_unaligned} don't use unaligned accesses, even when
@@ -327,6 +328,7 @@ CONFIG_LIST="
multi_res_encoding
temporal_denoising
experimental
size_limit
${EXPERIMENT_LIST}
"
CMDLINE_SELECT="
@@ -352,6 +354,7 @@ CMDLINE_SELECT="
docs
libc
as
size_limit
fast_unaligned
codec_srcs
debug_libs