From 5307f2fe62177204d35e0328c610cc08eef5a876 Mon Sep 17 00:00:00 2001 From: galister <22305755+galister@users.noreply.github.com> Date: Mon, 14 Jul 2025 06:18:57 +0900 Subject: [PATCH] pass bit_depth to probe_nvenc --- server/encoder/encoder_settings.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/server/encoder/encoder_settings.cpp b/server/encoder/encoder_settings.cpp index 822a6702..2b5d29ab 100644 --- a/server/encoder/encoder_settings.cpp +++ b/server/encoder/encoder_settings.cpp @@ -190,7 +190,7 @@ static std::optional filter_codecs_vaapi(wivrn_vk_bundle & b #endif #if WIVRN_USE_NVENC -static bool probe_nvenc(wivrn_vk_bundle & bundle) +static bool probe_nvenc(wivrn_vk_bundle & bundle, int bit_depth) { static bool res = [&]() { encoder_settings s{ @@ -204,6 +204,7 @@ static bool probe_nvenc(wivrn_vk_bundle & bundle) encoder_nvenc, default_bitrate, }; + s.bit_depth = bit_depth; try { video_encoder_nvenc test(bundle, s, 60, 0); @@ -225,9 +226,7 @@ static void fill_defaults(wivrn_vk_bundle & bundle, const std::vector