[FFmpeg-cvslog] hwcontext_vulkan: properly error out if timeline semaphores are unsupported
Lynne
git at videolan.org
Sat Nov 13 01:04:19 EET 2021
ffmpeg | branch: master | Lynne <dev at lynne.ee> | Fri Nov 12 23:50:10 2021 +0100| [8449baf9aac2ad86ddb21bb64a51b94010f354e3] | committer: Lynne
hwcontext_vulkan: properly error out if timeline semaphores are unsupported
Missing goto.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8449baf9aac2ad86ddb21bb64a51b94010f354e3
---
libavutil/hwcontext_vulkan.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c
index 3c86e2d683..2f72024617 100644
--- a/libavutil/hwcontext_vulkan.c
+++ b/libavutil/hwcontext_vulkan.c
@@ -1215,6 +1215,7 @@ static int vulkan_device_create_internal(AVHWDeviceContext *ctx,
if (!dev_features_1_2.timelineSemaphore) {
av_log(ctx, AV_LOG_ERROR, "Device does not support timeline semaphores!\n");
err = AVERROR(ENOSYS);
+ goto end;
}
p->device_features_1_2.timelineSemaphore = 1;
More information about the ffmpeg-cvslog
mailing list