build: stop probing for openh264 in the project FFmpeg

openh264 is redundant for the editor — H.264 decodes use FFmpeg's native
decoder and H.264 encodes go through libx264 — but the probe still
enabled it wherever a pkg-config file existed, and FFmpeg links its
external codec libraries dynamically. The editor therefore required the
distributor's libopenh264 soname package (Debian's libopenh264-7, the
openKylin container's libopenh264-8 while the openKylin livecd only
ships -7), a dependency the editor never exercises. Drop the probe and
the -dev package from install-deps.sh on every platform.
This commit is contained in:
2026-09-24 21:26:47 +08:00
parent fac63e24d4
commit 982593aa2c
2 changed files with 16 additions and 13 deletions
+7 -4
View File
@@ -138,11 +138,14 @@ if [ -d /opt/homebrew/lib/pkgconfig/openjpeg ]; then
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH:-}:/opt/homebrew/lib/pkgconfig/openjpeg"
fi
enable_if_pkg libopenjp2 libopenjpeg
# openh264 is redundant for us (decode: FFmpeg's native h264; encode:
# x264) and snappy only feeds the hap encoder; neither MinGW package
# satisfies the static link — skip both on Windows.
# snappy only feeds the hap encoder and the MinGW package does not
# satisfy the static link — skip it on Windows. openh264 is deliberately
# not probed anywhere: it is redundant (decode: FFmpeg's native h264;
# encode: libx264) and every external FFmpeg links dynamically turns
# into a runtime dependency on the distributor's soname package
# (libopenh264-7 vs -8 across releases), which is exactly the kind of
# dependency the editor should not carry for an unused codec.
if [ -z "${MSYSTEM:-}" ]; then
enable_if_pkg openh264 libopenh264
enable_if_pkg snappy libsnappy
fi
enable_if_pkg webp libwebp