From 66093c5b94495dfb6ba4fabe2d5e968c19367906 Mon Sep 17 00:00:00 2001 From: Lynne Date: Mon, 18 Nov 2024 15:05:36 +0100 Subject: [PATCH] ffv1enc_vulkan: restrict number of execution contexts to 1 This only leads to wasting memory in a single-threaded operation. Limit this to 1 for now and leave a comment. --- libavcodec/ffv1enc_vulkan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/ffv1enc_vulkan.c b/libavcodec/ffv1enc_vulkan.c index 2f776307c1..7b2ddfb03d 100644 --- a/libavcodec/ffv1enc_vulkan.c +++ b/libavcodec/ffv1enc_vulkan.c @@ -1433,7 +1433,7 @@ static av_cold int vulkan_encode_ffv1_init(AVCodecContext *avctx) } err = ff_vk_exec_pool_init(&fv->s, &fv->qf, &fv->exec_pool, - fv->qf.nb_queues*4, + 1, /* Single-threaded for now */ 0, 0, 0, NULL); if (err < 0) return err;