From 63bdbcca8f1afd2efb090ceeed63750ce787ccb6 Mon Sep 17 00:00:00 2001 From: Ryan Lucia Date: Wed, 7 Oct 2026 22:04:58 -0700 Subject: [PATCH] meson: build the bundled ffmpeg without unused components ffms2 only demuxes and decodes local files, so disable libavdevice, libavfilter, encoders, muxers and network support in the ffmpeg fallback. This drops about a third of ffmpeg's compiles (2186 to 1447) while keeping every decoder, parser, bitstream filter and local-file demuxer; the only demuxers lost are the network ones (RTP, RTSP, SAP, SDP). It only affects builds that use the bundled ffmpeg. Co-Authored-By: Claude Opus 5.5 --- meson.build | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meson.build b/meson.build index 29b7fd390c..3efad4f245 100644 --- a/meson.build +++ b/meson.build @@ -9,6 +9,12 @@ project('Aegisub', ['c', 'cpp'], 'harfbuzz:icu=disabled', 'ffmpeg:libdav1d=enabled', + # ffms2 only demuxes and decodes local files + 'ffmpeg:avdevice=disabled', + 'ffmpeg:avfilter=disabled', + 'ffmpeg:encoders=disabled', + 'ffmpeg:muxers=disabled', + 'ffmpeg:network=disabled', 'luajit:default_library=static', 'luajit:amalgam=true', 'luajit:lua52compat=true',