From b257f3c660b0d7250b245f1c560f289e122e9f2b Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Fri, 21 Mar 2025 07:49:17 -0500 Subject: [PATCH] feat: add ffmpeg.dll to delay load configuration (#46172) feat: set ffmpeg.dll as a delay-loaded DLL Updated the /DELAYLOAD linker config in BUILD.gn to set ffmpeg.dll as a delay-loaded DLL. This reduces startup overhead and prevents unnecessary loading when ffmpeg-related functionality is not used (e.g., the browser process was unnecessarily loading it). Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Zonglong Liu <83216456+mai-121@users.noreply.github.com> --- BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BUILD.gn b/BUILD.gn index 0892c195059d..235c7abd3e85 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -1246,7 +1246,7 @@ if (is_mac) { "//components/crash/core/app:run_as_crashpad_handler", ] - ldflags = [] + ldflags = [ "/DELAYLOAD:ffmpeg.dll" ] libs = [ "comctl32.lib",