diff options
author | Wu Jianhua <jianhua.wu@intel.com> | 2021-11-19 21:52:40 +0800 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2021-11-19 16:47:47 +0100 |
commit | 766b1c170b8b5182d4f5036692195512c43e1d2b (patch) | |
tree | 9ccea330a14eb3a29f56de973a3c50995b812e58 /libavfilter | |
parent | 6a2284711eed19c247a55e0bdeab90e10a3e2ed1 (diff) | |
download | ffmpeg-766b1c170b8b5182d4f5036692195512c43e1d2b.tar.gz |
avfilter/chromaber_vulkan: use FF_ARRAY_ELEMS instead of magic number
Signed-off-by: Wu Jianhua <jianhua.wu@intel.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_chromaber_vulkan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_chromaber_vulkan.c b/libavfilter/vf_chromaber_vulkan.c index 03e493bc7f..912ee8c609 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() ); |