forked from Mirrors/freeswitch
[libvpx] scan-build: prevent division by zero in vpx_int_pro_row_c()
This commit is contained in:
parent
c47c16b1dd
commit
b9b0b00912
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue