alvr: Fix build with ffmpeg 8 compat (#461709)
This commit is contained in:
@@ -27,6 +27,7 @@
|
|||||||
libva,
|
libva,
|
||||||
libvdpau,
|
libvdpau,
|
||||||
libxkbcommon,
|
libxkbcommon,
|
||||||
|
openapv,
|
||||||
openssl,
|
openssl,
|
||||||
openvr,
|
openvr,
|
||||||
pipewire,
|
pipewire,
|
||||||
@@ -59,6 +60,15 @@ rustPlatform.buildRustPackage rec {
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace alvr/server_openvr/cpp/platform/linux/EncodePipelineVAAPI.cpp \
|
||||||
|
--replace-fail 'FF_PROFILE_H264_MAIN' 'AV_PROFILE_H264_MAIN' \
|
||||||
|
--replace-fail 'FF_PROFILE_H264_BASELINE' 'AV_PROFILE_H264_BASELINE' \
|
||||||
|
--replace-fail 'FF_PROFILE_H264_HIGH' 'AV_PROFILE_H264_HIGH' \
|
||||||
|
--replace-fail 'FF_PROFILE_HEVC_MAIN' 'AV_PROFILE_HEVC_MAIN' \
|
||||||
|
--replace-fail 'FF_PROFILE_AV1_MAIN' 'AV_PROFILE_AV1_MAIN'
|
||||||
|
'';
|
||||||
|
|
||||||
env = {
|
env = {
|
||||||
NIX_CFLAGS_COMPILE = toString [
|
NIX_CFLAGS_COMPILE = toString [
|
||||||
"-lbrotlicommon"
|
"-lbrotlicommon"
|
||||||
@@ -111,6 +121,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
libva
|
libva
|
||||||
libvdpau
|
libvdpau
|
||||||
libxkbcommon
|
libxkbcommon
|
||||||
|
openapv
|
||||||
openssl
|
openssl
|
||||||
openvr
|
openvr
|
||||||
pipewire
|
pipewire
|
||||||
|
|||||||
Reference in New Issue
Block a user