You've already forked FFmpeg
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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user