hwcontext_vulkan: use correct return value for allocation failure

This commit is contained in:
Lynne 2021-11-27 04:38:27 +01:00
parent 33be4e6ca9
commit c90b3661fa
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}