Fix stack overrun in calculating segmentation map coding method.

This caused spurious crashes on encodes, frustratingly often only on
high-definition material.

Change-Id: Ia8c1dfc420d598ca92108bd9cc2df7450e8d10a2
This commit is contained in:
Ronald S. Bultje
2012-08-15 22:20:24 -07:00
parent 9471bc2e9e
commit 0393e558a4

View File

@@ -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];