Signed-off-by: Wu Jianhua <[email protected]>
---
 libavfilter/vf_chromaber_vulkan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_chromaber_vulkan.c 
b/libavfilter/vf_chromaber_vulkan.c
index 86a66454a4..eff6554960 100644
--- a/libavfilter/vf_chromaber_vulkan.c
+++ b/libavfilter/vf_chromaber_vulkan.c
@@ -126,7 +126,7 @@ static av_cold int init_filter(AVFilterContext *ctx, 
AVFrame *in)
         ff_vk_add_push_constant(s->pl, 0, sizeof(s->opts),
                                 VK_SHADER_STAGE_COMPUTE_BIT);
 
-        RET(ff_vk_add_descriptor_set(vkctx, s->pl, shd, desc_i, 2, 0)); /* set 
0 */
+        RET(ff_vk_add_descriptor_set(vkctx, s->pl, shd, desc_i, 
FF_ARRAY_ELEMS(desc_i), 0)); /* set 0 */
 
         GLSLD(   distort_chroma_kernel                                        
);
         GLSLC(0, void main()                                                  
);
-- 
2.17.1

_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to