aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2021-11-16 11:19:10 +0100
committerLynne <dev@lynne.ee>2021-11-16 11:20:13 +0100
commit20c66fe2f9ac69dbfa2f3cfc2386aae4ba7adc60 (patch)
tree9ad51bffa37155f7e0412bae6674d8125e47a353 /libavfilter
parentbd55552d692254b53504357c6987eea976cff4f9 (diff)
downloadffmpeg-20c66fe2f9ac69dbfa2f3cfc2386aae4ba7adc60.tar.gz
lavfi/vulkan: fix issues the previous commit introduced
One typo and one think-before-you-paste.
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vulkan.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavfilter/vulkan.c b/libavfilter/vulkan.c
index 3bb4eea7a1..48f02e4603 100644
--- a/libavfilter/vulkan.c
+++ b/libavfilter/vulkan.c
@@ -119,7 +119,7 @@ void ff_vk_qf_init(AVFilterContext *avctx, FFVkQueueFamilyCtx *qf,
av_assert0(0); /* Should never happen */
}
- if (qf->actual_queues)
+ if (!nb_queues)
qf->nb_queues = qf->actual_queues;
else
qf->nb_queues = nb_queues;
@@ -1258,10 +1258,10 @@ void ff_vk_update_descriptor_set(AVFilterContext *avctx, FFVulkanPipeline *pl,
/* If a set has never been updated, update all queues' sets. */
if (!pl->desc_set_initialized[set_id]) {
for (int i = 0; i < pl->qf->nb_queues; i++) {
- set_id = set_id*pl->qf->nb_queues + i;
+ int idx = set_id*pl->qf->nb_queues + i;
vk->UpdateDescriptorSetWithTemplate(s->hwctx->act_dev,
- pl->desc_set[set_id],
- pl->desc_template[set_id],
+ pl->desc_set[idx],
+ pl->desc_template[idx],
s);
}
pl->desc_set_initialized[set_id] = 1;