Select compatible codec for vaapi when no config is given

This commit is contained in:
Patrick Nicolas
2024-08-31 22:07:56 +02:00
parent a34b8ba928
commit 481c922143
7 changed files with 82 additions and 14 deletions
+5 -1
View File
@@ -210,7 +210,11 @@ static bool comp_wivrn_init_post_vulkan(struct comp_target * ct, uint32_t prefer
try
{
cn->settings = get_encoder_settings(*cn->wivrn_bundle->physical_device, cn->c->settings.preferred.width, cn->c->settings.preferred.height);
cn->settings = get_encoder_settings(
*cn->wivrn_bundle,
cn->c->settings.preferred.width,
cn->c->settings.preferred.height,
cn->cnx->get_info().supported_codecs);
print_encoders(cn->settings);
}
catch (const std::exception & e)