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