Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2021-11-27 06:38:27 +0300
committerLynne <dev@lynne.ee>2021-11-27 06:46:41 +0300
commitc90b3661fadcec98ab6462ac9f8180aa0cb8ec62 (patch)
tree0793a902dacc470cc17b90382a2276b1baf6e50b /libavutil
parent33be4e6ca904201afe8fb99ee245586bb477b40e (diff)
hwcontext_vulkan: use correct return value for allocation failure
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/hwcontext_vulkan.c2
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;
}