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) {
|
const int ref_stride, const int height) {
|
||||||
int idx;
|
int idx;
|
||||||
const int norm_factor = height >> 1;
|
const int norm_factor = height >> 1;
|
||||||
|
if (height == 1) return;
|
||||||
for (idx = 0; idx < 16; ++idx) {
|
for (idx = 0; idx < 16; ++idx) {
|
||||||
int i;
|
int i;
|
||||||
hbuf[idx] = 0;
|
hbuf[idx] = 0;
|
||||||
|
|
Loading…
Reference in New Issue