Default passthrough encoder to encoder[0] settings

This commit is contained in:
Patrick Nicolas committed 2025-10-06 13:47:28 +02:00
1 parent 5f373460a1
commit e4acf2401e
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -359,7 +359,7 @@ std::vector<encoder_settings> get_encoder_settings(wivrn_vk_bundle & bundle, uin
if (config.encoders.empty())
config.encoders = get_encoder_default_settings(bundle, info.supported_codecs, config.bit_depth);
if (not config.encoder_passthrough)
config.encoder_passthrough.emplace();
config.encoder_passthrough = config.encoders.front();
config.encoder_passthrough->width = 1;
config.encoder_passthrough->height = 1;