[FFmpeg-cvslog] avfilter/overlay_vulkan: use FF_ARRAY_ELEMS instead of magic number

Wu Jianhua git at videolan.org
Fri Nov 19 17:48:23 EET 2021


ffmpeg | branch: master | Wu Jianhua <jianhua.wu at intel.com> | Fri Nov 19 21:52:42 2021 +0800| [14f78d6234f3c0370a7960c43792551b9533d314] | committer: Lynne

avfilter/overlay_vulkan: use FF_ARRAY_ELEMS instead of magic number

Signed-off-by: Wu Jianhua <jianhua.wu at intel.com>

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

 libavfilter/vf_overlay_vulkan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_overlay_vulkan.c b/libavfilter/vf_overlay_vulkan.c
index 4308574f05..87bd6301ec 100644
--- a/libavfilter/vf_overlay_vulkan.c
+++ b/libavfilter/vf_overlay_vulkan.c
@@ -146,7 +146,7 @@ static av_cold int init_filter(AVFilterContext *ctx)
 
         ff_vk_set_compute_shader_sizes(shd, CGROUPS);
 
-        RET(ff_vk_add_descriptor_set(vkctx, s->pl, shd,  desc_i, 3, 0)); /* set 0 */
+        RET(ff_vk_add_descriptor_set(vkctx, s->pl, shd,  desc_i, FF_ARRAY_ELEMS(desc_i), 0)); /* set 0 */
         RET(ff_vk_add_descriptor_set(vkctx, s->pl, shd, &desc_b, 1, 0)); /* set 1 */
 
         GLSLD(   overlay_noalpha                                              );



More information about the ffmpeg-cvslog mailing list