summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_segmentation.c
diff options
context:
space:
mode:
authorDmitry Kovalev <dkovalev@google.com>2013-08-15 11:37:56 -0700
committerDmitry Kovalev <dkovalev@google.com>2013-08-15 11:37:56 -0700
commit6f4fa44c42cad43c2ce7adc56fc208fc310c5276 (patch)
treec22aada39825ac4bd1c8c9791486a6f598c30353 /vp9/encoder/vp9_segmentation.c
parent89a1fcf884f0e7a2d62eb8b45cece8c2bfbe2278 (diff)
downloadlibvpx-6f4fa44c42cad43c2ce7adc56fc208fc310c5276.tar
libvpx-6f4fa44c42cad43c2ce7adc56fc208fc310c5276.tar.gz
libvpx-6f4fa44c42cad43c2ce7adc56fc208fc310c5276.tar.bz2
libvpx-6f4fa44c42cad43c2ce7adc56fc208fc310c5276.zip
Using { 0 } for initialization instead of memset.
Change-Id: I4fad357465022d14bfc7e13b348c6da267587314
Diffstat (limited to 'vp9/encoder/vp9_segmentation.c')
-rw-r--r--vp9/encoder/vp9_segmentation.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/vp9/encoder/vp9_segmentation.c b/vp9/encoder/vp9_segmentation.c
index 9564edc84..3db91caca 100644
--- a/vp9/encoder/vp9_segmentation.c
+++ b/vp9/encoder/vp9_segmentation.c
@@ -217,9 +217,9 @@ void vp9_choose_segmap_coding_method(VP9_COMP *cpi) {
int i, tile_col, mi_row, mi_col;
- int temporal_predictor_count[PREDICTION_PROBS][2];
- int no_pred_segcounts[MAX_SEGMENTS];
- int t_unpred_seg_counts[MAX_SEGMENTS];
+ int temporal_predictor_count[PREDICTION_PROBS][2] = { { 0 } };
+ int no_pred_segcounts[MAX_SEGMENTS] = { 0 };
+ int t_unpred_seg_counts[MAX_SEGMENTS] = { 0 };
vp9_prob no_pred_tree[SEG_TREE_PROBS];
vp9_prob t_pred_tree[SEG_TREE_PROBS];
@@ -233,10 +233,6 @@ void vp9_choose_segmap_coding_method(VP9_COMP *cpi) {
vpx_memset(seg->tree_probs, 255, sizeof(seg->tree_probs));
vpx_memset(seg->pred_probs, 255, sizeof(seg->pred_probs));
- vpx_memset(no_pred_segcounts, 0, sizeof(no_pred_segcounts));
- vpx_memset(t_unpred_seg_counts, 0, sizeof(t_unpred_seg_counts));
- vpx_memset(temporal_predictor_count, 0, sizeof(temporal_predictor_count));
-
// First of all generate stats regarding how well the last segment map
// predicts this one
for (tile_col = 0; tile_col < 1 << cm->log2_tile_cols; tile_col++) {