ci+tests: skip libopenh264 on MinGW; fix UB varargs in the message-suite test

- FFmpeg for Windows no longer enables libopenh264 (redundant with the
  native h264 decoder + x264 encoder; its MinGW packaging does not
  satisfy the static link — Wels* undefined references)
- suites_test's question-type call passed a 3-placeholder format with
  one variadic arg — UB that vsnprintf turns into a SIGSEGV on glibc
  (masked on macOS); use a placeholder-free format
This commit is contained in:
2026-08-21 08:41:54 +08:00
parent cd95514cf8
commit 032a3a559b
2 changed files with 11 additions and 3 deletions
+6 -1
View File
@@ -138,7 +138,12 @@ 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
enable_if_pkg openh264 libopenh264
# openh264 is redundant for us (decode: FFmpeg's native h264; encode:
# x264) and its MinGW package does not satisfy the static link — skip it
# on Windows.
if [ -z "${MSYSTEM:-}" ]; then
enable_if_pkg openh264 libopenh264
fi
enable_if_pkg snappy libsnappy
enable_if_pkg wavpack libwavpack
enable_if_pkg webp libwebp