From feb0daf81d888e9160f9f94502de09b66f2a63fd Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 21 Jun 2020 17:50:24 +0100 Subject: gentoo resync : 21.06.2020 --- .../chromium/files/chromium-84-mediaalloc.patch | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 www-client/chromium/files/chromium-84-mediaalloc.patch (limited to 'www-client/chromium/files') diff --git a/www-client/chromium/files/chromium-84-mediaalloc.patch b/www-client/chromium/files/chromium-84-mediaalloc.patch new file mode 100644 index 000000000000..69f0229088a9 --- /dev/null +++ b/www-client/chromium/files/chromium-84-mediaalloc.patch @@ -0,0 +1,41 @@ +https://bugs.chromium.org/p/chromium/issues/detail?id=1095962 + +--- /media/base/media.cc ++++ /media/base/media.cc +@@ -2,6 +2,8 @@ + // Use of this source code is governed by a BSD-style license that can be + // found in the LICENSE file. + ++#include ++ + #include "media/base/media.h" + + #include "base/allocator/buildflags.h" +@@ -41,7 +43,7 @@ + + #if BUILDFLAG(USE_ALLOCATOR_SHIM) + // Remove allocation limit from ffmpeg, so calls go down to shim layer. +- av_max_alloc(0); ++ av_max_alloc(std::numeric_limits::max()); + #endif // BUILDFLAG(USE_ALLOCATOR_SHIM) + + #endif // BUILDFLAG(ENABLE_FFMPEG) +--- /third_party/ffmpeg/chromium/dllmain.cc ++++ /third_party/ffmpeg/chromium/dllmain.cc +@@ -3,6 +3,7 @@ + // found in the LICENSE file. + + #include ++#include + #include + #include + #include +@@ -28,7 +29,7 @@ + if (reason == DLL_PROCESS_ATTACH) { + DisableThreadLibraryCalls(instance); + // Remove allocation limit from ffmpeg, so calls go down to shim layer. +- av_max_alloc(0); ++ av_max_alloc(std::numeric_limits::max()); + // Enable OOM crashes in the shim for all malloc calls that fail. + _set_new_mode(1); + _set_new_handler(&OnNoMemory); -- cgit v1.2.3