diff options
author | 2018-07-26 01:50:05 -0700 | |
---|---|---|
committer | 2018-07-26 18:50:05 +1000 | |
commit | 1b2d1931c8542f63b505465c4aef0782530bdc89 (patch) | |
tree | be4ec3e56449814b022cc8e89a762e9be3d134f9 /projects/ffmpeg | |
parent | 6a2376706c88c4e14a78377651fc7c9682cf732e (diff) |
ffmpeg,build.sh: restrict libvpx frame sizes (#1654)
Restricting the maximum resolution and single allocation size will reduce OOM
frequency.
Diffstat (limited to 'projects/ffmpeg')
-rwxr-xr-x | projects/ffmpeg/build.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/projects/ffmpeg/build.sh b/projects/ffmpeg/build.sh index b951c90f..3f2819c4 100755 --- a/projects/ffmpeg/build.sh +++ b/projects/ffmpeg/build.sh @@ -97,7 +97,9 @@ make install cd $SRC/libvpx LDFLAGS="$CXXFLAGS" ./configure --prefix="$FFMPEG_DEPS_PATH" \ - --disable-examples --disable-unit-tests + --disable-examples --disable-unit-tests \ + --size-limit=12288x12288 \ + --extra-cflags="-DVPX_MAX_ALLOCABLE_MEMORY=1073741824" make clean make -j$(nproc) all make install |