summarylogtreecommitdiffstats
path: root/chromium-ffmpeg-4.3.patch
diff options
context:
space:
mode:
authorJonathon Fernyhough2021-03-07 00:33:48 +0000
committerJonathon Fernyhough2021-03-07 00:33:48 +0000
commit15c98bff7c7a7806120070ac49e3fb0976aa37e9 (patch)
tree5ff29429e4eaea5b9082f5db2395a654c506eb2c /chromium-ffmpeg-4.3.patch
downloadaur-15c98bff7c7a7806120070ac49e3fb0976aa37e9.tar.gz
Import to AUR
Diffstat (limited to 'chromium-ffmpeg-4.3.patch')
-rw-r--r--chromium-ffmpeg-4.3.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/chromium-ffmpeg-4.3.patch b/chromium-ffmpeg-4.3.patch
new file mode 100644
index 000000000000..6abb886ab990
--- /dev/null
+++ b/chromium-ffmpeg-4.3.patch
@@ -0,0 +1,21 @@
+diff --git a/media/base/media.cc b/media/base/media.cc
+index c282ee49a03..a298b40c79b 100644
+--- a/media/base/media.cc
++++ b/media/base/media.cc
+@@ -14,6 +14,7 @@
+ #include "third_party/libyuv/include/libyuv.h"
+
+ #if BUILDFLAG(ENABLE_FFMPEG)
++#include <limits>
+ #include "third_party/ffmpeg/ffmpeg_features.h" // nogncheck
+ extern "C" {
+ #include <libavutil/cpu.h>
+@@ -41,7 +42,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)