diff options
author | John Koleszar <jkoleszar@google.com> | 2010-08-09 13:27:26 -0400 |
---|---|---|
committer | John Koleszar <jkoleszar@google.com> | 2010-08-11 13:49:12 -0400 |
commit | 392a958274f6456add66363ae2dfdfc060b94fe9 (patch) | |
tree | 7222c7cb7f44366f7fba11095a82d8026226247b /vp8/common/entropymode.c | |
parent | c0ba42d3c0e8f28422c819e7b93413224a5cf2cb (diff) | |
download | libvpx-392a958274f6456add66363ae2dfdfc060b94fe9.tar libvpx-392a958274f6456add66363ae2dfdfc060b94fe9.tar.gz libvpx-392a958274f6456add66363ae2dfdfc060b94fe9.tar.bz2 libvpx-392a958274f6456add66363ae2dfdfc060b94fe9.zip |
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
Diffstat (limited to 'vp8/common/entropymode.c')
-rw-r--r-- | vp8/common/entropymode.c | 6 |
1 files changed, 4 insertions, 2 deletions
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); } |