Add mitigation for v31.x build error

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2024-12-11 21:10:02 +01:00
parent a05c9bcbdc
commit 930d976f90
Signed by: luzifer
SSH key fingerprint: SHA256:/xtE5lCgiRDQr8SLxHMS92ZBlACmATUmF1crK16Ks4E

View file

@ -71,6 +71,9 @@ prepare() {
}
build() {
# Mitigate `error: sample_fmts is deprecated` in v31.x
export CFLAGS+=" -Wno-error=deprecated-declarations"
cmake -B build -S $pkgname \
-DFFnvcodec_INCLUDE_DIR="nv-codec-headers-12.1.14.0/include/" \
-DCMAKE_INSTALL_PREFIX=/usr \