This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 2ca26883005ed3bbaff36e7dd535d52ffacd0f27
Author:     Lynne <[email protected]>
AuthorDate: Wed Sep 16 09:08:16 2026 +0900
Commit:     Lynne <[email protected]>
CommitDate: Sun Sep 20 11:59:40 2026 +0900

    vulkan_video: fix 4:2:2 chroma subsampling detection
    
    The 4:2:2 test had the chroma shifts swapped, matching 4:4:0 instead, so
    every 4:2:2 pixel format mapped to VK_VIDEO_CHROMA_SUBSAMPLING_INVALID_KHR
    and produced a video profile with chromaSubsampling set to zero, which is
    not a valid profile to query the device's capabilities with
    (VUID-VkVideoProfileInfoKHR-chromaSubsampling-07013 and -requiredbitmask).
---
 libavcodec/vulkan_video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vulkan_video.c b/libavcodec/vulkan_video.c
index 1ce432b47d..44ad8e9233 100644
--- a/libavcodec/vulkan_video.c
+++ b/libavcodec/vulkan_video.c
@@ -118,7 +118,7 @@ VkVideoChromaSubsamplingFlagBitsKHR 
ff_vk_subsampling_from_av_desc(const AVPixFm
         return VK_VIDEO_CHROMA_SUBSAMPLING_MONOCHROME_BIT_KHR;
     else if (!desc->log2_chroma_w && !desc->log2_chroma_h)
         return VK_VIDEO_CHROMA_SUBSAMPLING_444_BIT_KHR;
-    else if (!desc->log2_chroma_w && desc->log2_chroma_h == 1)
+    else if (desc->log2_chroma_w == 1 && !desc->log2_chroma_h)
         return VK_VIDEO_CHROMA_SUBSAMPLING_422_BIT_KHR;
     else if (desc->log2_chroma_w == 1 && desc->log2_chroma_h == 1)
         return VK_VIDEO_CHROMA_SUBSAMPLING_420_BIT_KHR;

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to