c/main: Fix incorrect surface format matching

This commit is contained in:
korejan 2024-03-26 21:30:31 +00:00
parent 45fd181fdb
commit 159f22e403

View file

@ -222,7 +222,7 @@ pick_first_matching_surface_format(const struct comp_target_create_images_info *
for (uint32_t k = 0; k < surface_format_count; k++) {
if (surface_formats[k].format == format) {
// Perfect match.
*out_surface_format = surface_formats[i];
*out_surface_format = surface_formats[k];
return true;
}
}