Don't force 10 bit for H.265 and AV1

This commit is contained in:
Patrick Nicolas committed 2026-01-25 12:26:19 +01:00
1 parent 20a81ed004
commit c846cb1ed2
1 file changed
+1 -1
+1 -1
View File
@@ -328,7 +328,7 @@ std::array<encoder_settings, 3> get_encoder_settings(wivrn_vk_bundle & bundle, c
if (std::ranges::contains(res, video_codec::h264, &encoder_settings::codec) or
std::ranges::contains(res, video_codec::raw, &encoder_settings::codec))
bit_depth = 8;
else
else if (not bit_depth)
bit_depth = 10;
auto check_format = [&](vk::Format format) {