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
This commit is contained in:
Lynne
2026-03-30 18:53:48 +02:00
parent 0a543441be
commit 4b1e79f062

View File

@@ -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) {