[libvpx] scan-build: prevent division by zero in vpx_int_pro_row_c()

This commit is contained in:
Andrey Volk 2022-01-05 18:35:06 +03:00
parent c47c16b1dd
commit b9b0b00912
1 changed files with 1 additions and 0 deletions

View File

@ -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;