Default passthrough encoder to encoder[0] settings
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user