1 diff --git a/media/base/media.cc b/media/base/media.cc
2 index c282ee49a03..a298b40c79b 100644
3 --- a/media/base/media.cc
4 +++ b/media/base/media.cc
6 #include "third_party/libyuv/include/libyuv.h"
8 #if BUILDFLAG(ENABLE_FFMPEG)
10 #include "third_party/ffmpeg/ffmpeg_features.h" // nogncheck
12 #include <libavutil/cpu.h>
13 @@ -41,7 +42,7 @@ class MediaInitializer {
15 #if BUILDFLAG(USE_ALLOCATOR_SHIM)
16 // Remove allocation limit from ffmpeg, so calls go down to shim layer.
18 + av_max_alloc(std::numeric_limits<size_t>::max());
19 #endif // BUILDFLAG(USE_ALLOCATOR_SHIM)
21 #endif // BUILDFLAG(ENABLE_FFMPEG)