aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2024-11-18 15:05:36 +0100
committerLynne <dev@lynne.ee>2024-11-18 20:04:24 +0100
commit66093c5b94495dfb6ba4fabe2d5e968c19367906 (patch)
tree074ec48bb8874da8382002eadcaa832e541f7c5e
parentb75dff0e201ebe89f63f9ffb2c38f38e310b7333 (diff)
downloadffmpeg-66093c5b94495dfb6ba4fabe2d5e968c19367906.tar.gz
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.
-rw-r--r--libavcodec/ffv1enc_vulkan.c2
1 files changed, 1 insertions, 1 deletions
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;