1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

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

View File

@@ -581,7 +581,7 @@ static int check_validation_layers(AVHWDeviceContext *ctx, AVDictionary *opts,
user_layers_str = av_strdup(user_layers->value); user_layers_str = av_strdup(user_layers->value);
if (!user_layers_str) { if (!user_layers_str) {
err = AVERROR(EINVAL); err = AVERROR(ENOMEM);
goto fail; goto fail;
} }