vkvideoutils: fix bug for chroma string comparison

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4716>
This commit is contained in:
Víctor Manuel Jáquez Leal 2023-05-24 20:36:14 +02:00
parent d6f1c517f3
commit e9414b9582

View file

@ -289,7 +289,7 @@ gst_vulkan_video_profile_from_caps (GstVulkanVideoProfile * profile,
return FALSE;
for (i = 0; i < G_N_ELEMENTS (video_chroma_map); i++) {
if (g_strcmp0 (chroma_sub, video_chroma_map[i].chroma_str)) {
if (g_strcmp0 (chroma_sub, video_chroma_map[i].chroma_str) == 0) {
profile->profile.chromaSubsampling = video_chroma_map[i].chroma;
break;
}