diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index 1f952f2a80..a0437c9661 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c @@ -581,7 +581,7 @@ static int check_validation_layers(AVHWDeviceContext *ctx, AVDictionary *opts, user_layers_str = av_strdup(user_layers->value); if (!user_layers_str) { - err = AVERROR(EINVAL); + err = AVERROR(ENOMEM); goto fail; }