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.
This commit is contained in:
Lynne 2024-11-18 15:05:36 +01:00
parent b75dff0e20
commit 66093c5b94
1 changed files with 1 additions and 1 deletions

View File

@ -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;