mirror of https://git.ffmpeg.org/ffmpeg.git
hwcontext_vulkan: use correct return value for allocation failure
This commit is contained in:
parent
33be4e6ca9
commit
c90b3661fa
|
@ -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…
Reference in New Issue