This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit f5b66388088b33c8e994be083d31fc48734d629d Author: Lynne <[email protected]> AuthorDate: Wed Sep 16 09:11:09 2026 +0900 Commit: Lynne <[email protected]> CommitDate: Sun Sep 20 11:59:51 2026 +0900 vulkan_decode, vulkan_encode: report codec profiles the device does not support VK_ERROR_VIDEO_PROFILE_CODEC_NOT_SUPPORTED_KHR, which drivers return for a codec profile they have no notion of, such as H.264 High 4:2:2, fell through to a silent generic failure. Report it the way an unsupported operation is. --- libavcodec/vulkan_decode.c | 3 ++- libavcodec/vulkan_encode.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libavcodec/vulkan_decode.c b/libavcodec/vulkan_decode.c index 0e1749c5f7..2ee78a3fba 100644 --- a/libavcodec/vulkan_decode.c +++ b/libavcodec/vulkan_decode.c @@ -907,7 +907,8 @@ static int vulkan_decode_get_profile(AVCodecContext *avctx, AVBufferRef *frames_ cur_profile); } - if (ret == VK_ERROR_VIDEO_PROFILE_OPERATION_NOT_SUPPORTED_KHR) { + if (ret == VK_ERROR_VIDEO_PROFILE_OPERATION_NOT_SUPPORTED_KHR || + ret == VK_ERROR_VIDEO_PROFILE_CODEC_NOT_SUPPORTED_KHR) { av_log(avctx, AV_LOG_VERBOSE, "Unable to initialize video session: " "%s profile \"%s\" not supported!\n", avcodec_get_name(avctx->codec_id), diff --git a/libavcodec/vulkan_encode.c b/libavcodec/vulkan_encode.c index 796c9275a0..9d3c9b04c5 100644 --- a/libavcodec/vulkan_encode.c +++ b/libavcodec/vulkan_encode.c @@ -932,7 +932,8 @@ av_cold int ff_vulkan_encode_init(AVCodecContext *avctx, FFVulkanEncodeContext * ret = vk->GetPhysicalDeviceVideoCapabilitiesKHR(s->hwctx->phys_dev, &ctx->profile, &ctx->caps); - if (ret == VK_ERROR_VIDEO_PROFILE_OPERATION_NOT_SUPPORTED_KHR) { + if (ret == VK_ERROR_VIDEO_PROFILE_OPERATION_NOT_SUPPORTED_KHR || + ret == VK_ERROR_VIDEO_PROFILE_CODEC_NOT_SUPPORTED_KHR) { av_log(avctx, AV_LOG_ERROR, "Unable to initialize encoding: " "%s profile \"%s\" not supported!\n", avcodec_get_name(avctx->codec_id), -- 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]
