[FFmpeg-cvslog] vulkan: fix sw_frame_deps counter

Lynne git at videolan.org
Wed Nov 20 06:48:04 EET 2024


ffmpeg | branch: master | Lynne <dev at lynne.ee> | Wed Nov 20 05:46:16 2024 +0100| [aad40fed3376f52006eb519833650a80ab115198] | committer: Lynne

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.

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

 libavutil/vulkan.c | 2 ++
 1 file changed, 2 insertions(+)

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



More information about the ffmpeg-cvslog mailing list