diff options
author | Angie Chiang <angiebird@google.com> | 2018-11-20 16:29:26 -0800 |
---|---|---|
committer | Angie Chiang <angiebird@google.com> | 2018-11-21 10:40:52 -0800 |
commit | 913f42801537e67c7534a012d90cae303e0d8cc8 (patch) | |
tree | f2780818f53d87e9aa39bf6b93e20c40dd6c00b6 | |
parent | a2a0cce56c1ef5bc1c0a02620533d3be24f54c84 (diff) | |
download | libvpx-913f42801537e67c7534a012d90cae303e0d8cc8.tar libvpx-913f42801537e67c7534a012d90cae303e0d8cc8.tar.gz libvpx-913f42801537e67c7534a012d90cae303e0d8cc8.tar.bz2 libvpx-913f42801537e67c7534a012d90cae303e0d8cc8.zip |
Fix scan_build warnings in vp9_loopfilter.c
BUG=webm:1575
Change-Id: Id70235c801d253d47267c6d34760484f82d5c881
-rw-r--r-- | vp9/common/vp9_loopfilter.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/vp9/common/vp9_loopfilter.c b/vp9/common/vp9_loopfilter.c index 04a93f3b9..95d6029f3 100644 --- a/vp9/common/vp9_loopfilter.c +++ b/vp9/common/vp9_loopfilter.c @@ -1087,13 +1087,19 @@ void vp9_filter_block_plane_non420(VP9_COMMON *cm, const int row_step_stride = cm->mi_stride * row_step; struct buf_2d *const dst = &plane->dst; uint8_t *const dst0 = dst->buf; - unsigned int mask_16x16[MI_BLOCK_SIZE] = { 0 }; - unsigned int mask_8x8[MI_BLOCK_SIZE] = { 0 }; - unsigned int mask_4x4[MI_BLOCK_SIZE] = { 0 }; - unsigned int mask_4x4_int[MI_BLOCK_SIZE] = { 0 }; + unsigned int mask_16x16[MI_BLOCK_SIZE]; + unsigned int mask_8x8[MI_BLOCK_SIZE]; + unsigned int mask_4x4[MI_BLOCK_SIZE]; + unsigned int mask_4x4_int[MI_BLOCK_SIZE]; uint8_t lfl[MI_BLOCK_SIZE * MI_BLOCK_SIZE]; int r, c; + vp9_zero(mask_16x16); + vp9_zero(mask_8x8); + vp9_zero(mask_4x4); + vp9_zero(mask_4x4_int); + vp9_zero(lfl); + for (r = 0; r < MI_BLOCK_SIZE && mi_row + r < cm->mi_rows; r += row_step) { unsigned int mask_16x16_c = 0; unsigned int mask_8x8_c = 0; @@ -1330,6 +1336,8 @@ void vp9_filter_block_plane_ss11(VP9_COMMON *const cm, uint16_t mask_4x4 = lfm->left_uv[TX_4X4]; uint16_t mask_4x4_int = lfm->int_4x4_uv; + vp9_zero(lfl_uv); + assert(plane->subsampling_x == 1 && plane->subsampling_y == 1); // Vertical pass: do 2 rows at one time |