Message ID | tencent_3D7D40E19A3A9F63AB634E9D70D02D719A08@qq.com |
---|---|
State | Accepted |
Commit | f6f06fb42ade0518830c54602123582652d53b18 |
Headers | show |
Series | [FFmpeg-devel,1/5] avutil/hwcontext: Don't assume device_uninit is reentrant | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavutil/vulkan.h b/libavutil/vulkan.h index b666841836..a5e78760d7 100644 --- a/libavutil/vulkan.h +++ b/libavutil/vulkan.h @@ -271,7 +271,7 @@ typedef struct FFVulkanContext { static inline int ff_vk_count_images(AVVkFrame *f) { int cnt = 0; - while (f->img[cnt]) + while (cnt < FF_ARRAY_ELEMS(f->img) && f->img[cnt]) cnt++; return cnt;
From: Zhao Zhili <zhilizhao@tencent.com> --- libavutil/vulkan.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)