hwcontext_vulkan: use correct return value for allocation failure

pull/375/head
Lynne 3 years ago
parent 33be4e6ca9
commit c90b3661fa
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464
  1. 2
      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;
}

Loading…
Cancel
Save