From 392a958274f6456add66363ae2dfdfc060b94fe9 Mon Sep 17 00:00:00 2001 From: John Koleszar Date: Mon, 9 Aug 2010 13:27:26 -0400 Subject: avoid negative array subscript warnings The mv_ref and sub_mv_ref token encodings are indexed from NEARESTMV and LEFT4X4, respectively, rather than being zero-based like the other token encodings. Change-Id: I3699c3f84111209ecfb91097c4b900773e9a3ad5 --- vp8/common/entropymode.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'vp8/common/entropymode.c') diff --git a/vp8/common/entropymode.c b/vp8/common/entropymode.c index 493728d5d..41922834f 100644 --- a/vp8/common/entropymode.c +++ b/vp8/common/entropymode.c @@ -264,8 +264,10 @@ void vp8_entropy_mode_init() vp8_tokens_from_tree(vp8_uv_mode_encodings, vp8_uv_mode_tree); vp8_tokens_from_tree(vp8_mbsplit_encodings, vp8_mbsplit_tree); - vp8_tokens_from_tree(VP8_MVREFENCODINGS, vp8_mv_ref_tree); - vp8_tokens_from_tree(VP8_SUBMVREFENCODINGS, vp8_sub_mv_ref_tree); + vp8_tokens_from_tree_offset(vp8_mv_ref_encoding_array, + vp8_mv_ref_tree, NEARESTMV); + vp8_tokens_from_tree_offset(vp8_sub_mv_ref_encoding_array, + vp8_sub_mv_ref_tree, LEFT4X4); vp8_tokens_from_tree(vp8_small_mvencodings, vp8_small_mvtree); } -- cgit v1.2.3