diff options
author | Lynne <dev@lynne.ee> | 2021-11-27 04:38:27 +0100 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2021-11-27 04:46:41 +0100 |
commit | c90b3661fadcec98ab6462ac9f8180aa0cb8ec62 (patch) | |
tree | 0793a902dacc470cc17b90382a2276b1baf6e50b | |
parent | 33be4e6ca904201afe8fb99ee245586bb477b40e (diff) | |
download | ffmpeg-c90b3661fadcec98ab6462ac9f8180aa0cb8ec62.tar.gz |
hwcontext_vulkan: use correct return value for allocation failure
-rw-r--r-- | libavutil/hwcontext_vulkan.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |