mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user