aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2024-11-20 05:46:16 +0100
committerLynne <dev@lynne.ee>2024-11-20 05:47:41 +0100
commitaad40fed3376f52006eb519833650a80ab115198 (patch)
tree7ce9d6a6cdff287d29bccb2c7b59b43e1681d9b3
parent4d3e96c90c658dbf85ae00ceb8d851689e4b7aca (diff)
downloadffmpeg-aad40fed3376f52006eb519833650a80ab115198.tar.gz
vulkan: fix sw_frame_deps counter
The code used as a basis was the buffer dependency code, where the counter was incremented after each buffer, but for the sw_frame dep API, we only support adding individual frames at a time.
-rw-r--r--libavutil/vulkan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c
index a04dfbfadf..2f4405c4fa 100644
--- a/libavutil/vulkan.c
+++ b/libavutil/vulkan.c
@@ -618,6 +618,8 @@ int ff_vk_exec_add_dep_sw_frame(FFVulkanContext *s, FFVkExecContext *e,
return AVERROR(ENOMEM);
}
+ e->nb_sw_frame_deps++;
+
return 0;
}