From 4b1e79f06248e1dfad9d3cd6edd85088cbd2fe41 Mon Sep 17 00:00:00 2001 From: Lynne Date: Mon, 30 Mar 2026 18:53:48 +0200 Subject: [PATCH] hwcontext_vulkan: return ENOTSUP in vulkan_frames_init If a format is not supported, EINVAL is not the appropriate return code. Sponsored-by: Sovereign Tech Fund --- libavutil/hwcontext_vulkan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index 5c1e4663a4..af812978d2 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c @@ -3008,7 +3008,7 @@ static int vulkan_frames_init(AVHWFramesContext *hwfc) if (!fmt) { av_log(hwfc, AV_LOG_ERROR, "Unsupported pixel format: %s!\n", av_get_pix_fmt_name(hwfc->sw_format)); - return AVERROR(EINVAL); + return AVERROR(ENOTSUP); } if (hwctx->format[0] != VK_FORMAT_UNDEFINED) {