Commit b41f55b33a for freeswitch.com
commit b41f55b33ab2e47b454f45b138ead2e471709385
Author: Andrey Volk <andywolk@gmail.com>
Date: Wed Jan 5 18:35:06 2022 +0300
[libvpx] scan-build: prevent division by zero in vpx_int_pro_row_c()
diff --git a/libs/libvpx/vpx_dsp/avg.c b/libs/libvpx/vpx_dsp/avg.c
index 1c45e8a73d..576d683fef 100644
--- a/libs/libvpx/vpx_dsp/avg.c
+++ b/libs/libvpx/vpx_dsp/avg.c
@@ -344,6 +344,7 @@ void vpx_int_pro_row_c(int16_t hbuf[16], const uint8_t *ref,
const int ref_stride, const int height) {
int idx;
const int norm_factor = height >> 1;
+ if (height == 1) return;
for (idx = 0; idx < 16; ++idx) {
int i;
hbuf[idx] = 0;