Default passthrough encoder to encoder[0] settings

This commit is contained in:
Patrick Nicolas
2025-10-06 13:47:28 +02:00
parent 5f373460a1
commit e4acf2401e
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -158,7 +158,8 @@ Json object of additional options to pass directly to ffmpeg `avcodec_open2`'s `
## `encoder-passthrough`
The single encoder used for passthrough (transparency), contains the same elements as the other encoders, except for width/height and offsets.
The single encoder used for passthrough (transparency), contains the same elements as the other encoders, except for width/height and offsets which are ignored.
Default values are those computed for the first encoder.
## `application`
Default value: unset
+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;