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 + #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::max()); #endif // BUILDFLAG(USE_ALLOCATOR_SHIM) #endif // BUILDFLAG(ENABLE_FFMPEG)