summaryrefslogtreecommitdiff
path: root/vp8
diff options
context:
space:
mode:
Diffstat (limited to 'vp8')
-rw-r--r--vp8/encoder/segmentation.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vp8/encoder/segmentation.c b/vp8/encoder/segmentation.c
index 83b27a6e9..e9d02cdd4 100644
--- a/vp8/encoder/segmentation.c
+++ b/vp8/encoder/segmentation.c
@@ -111,7 +111,8 @@ static void calc_segtree_probs(MACROBLOCKD *xd,
int i;
// Blank the strtucture to start with
- vpx_memset(segment_tree_probs, 0, sizeof(segment_tree_probs));
+ vpx_memset(segment_tree_probs, 0,
+ MB_FEATURE_TREE_PROBS * sizeof(*segment_tree_probs));
// Total count for all segments
count1 = segcounts[0] + segcounts[1];