[FFmpeg-cvslog] ffv1enc_vulkan: restrict number of execution contexts to 1

Lynne git at videolan.org
Mon Nov 18 21:06:55 EET 2024


ffmpeg | branch: master | Lynne <dev at lynne.ee> | Mon Nov 18 15:05:36 2024 +0100| [66093c5b94495dfb6ba4fabe2d5e968c19367906] | committer: Lynne

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.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=66093c5b94495dfb6ba4fabe2d5e968c19367906
---

 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;



More information about the ffmpeg-cvslog mailing list