PR #20725 opened by Niklas Haas (haasn) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20725 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20725.patch
This option is parsed after it is used. >From 2ddf9d2ad57e7a9a5e028e381406693225a4ab8e Mon Sep 17 00:00:00 2001 From: Niklas Haas <[email protected]> Date: Mon, 20 Oct 2025 14:15:36 +0200 Subject: [PATCH] avutil/hwcontext_vulkan: actually limit number of queues This option is parsed after it is used. --- libavutil/hwcontext_vulkan.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index ae4b07c698..efb8879341 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c @@ -1756,6 +1756,11 @@ static int vulkan_device_create_internal(AVHWDeviceContext *ctx, dev_info.pNext = p->feats.device.pNext; dev_info.pEnabledFeatures = &p->feats.device.features; + /* Limit queues to a given number if needed */ + opt_d = av_dict_get(opts, "limit_queues", NULL, 0); + if (opt_d) + p->limit_queues = strtol(opt_d->value, NULL, 10); + /* Setup enabled queue families */ if ((err = setup_queue_families(ctx, &dev_info))) goto end; @@ -1783,11 +1788,6 @@ static int vulkan_device_create_internal(AVHWDeviceContext *ctx, if (opt_d) p->use_linear_images = strtol(opt_d->value, NULL, 10); - /* Limit queues to a given number if needed */ - opt_d = av_dict_get(opts, "limit_queues", NULL, 0); - if (opt_d) - p->limit_queues = strtol(opt_d->value, NULL, 10); - /* The disable_multiplane argument takes precedent over the option */ p->disable_multiplane = disable_multiplane; if (!p->disable_multiplane) { -- 2.49.1 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
