File chromium-84-mediaalloc.patch of Package chromium.openSUSE_Backports_SLE-15-SP2_Update
https://bugs.chromium.org/p/chromium/issues/detail?id=1095962
Index: chromium-83.0.4103.116/media/base/media.cc
===================================================================
--- chromium-83.0.4103.116.orig/media/base/media.cc
+++ chromium-83.0.4103.116/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 <limits>
+
#include "media/base/media.h"
#include "base/allocator/buildflags.h"
@@ -41,7 +43,7 @@ class MediaInitializer {
#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<size_t>::max());
#endif // BUILDFLAG(USE_ALLOCATOR_SHIM)
#endif // BUILDFLAG(ENABLE_FFMPEG)