summaryrefslogblamecommitdiff
path: root/www-client/chromium/files/chromium-media-alloc-84.patch
blob: cc9ca5d6e5fcc22e73bfbee9c069176535941791 (plain) (tree)





















                                                                            
diff --git a/media/base/media.cc b/media/base/media.cc
index c282ee49a..3feece8a2 100644
--- a/media/base/media.cc
+++ b/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)