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/treecoder.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vp8/common/treecoder.h') diff --git a/vp8/common/treecoder.h b/vp8/common/treecoder.h index c8f5af96d..990327536 100644 --- a/vp8/common/treecoder.h +++ b/vp8/common/treecoder.h @@ -54,6 +54,8 @@ typedef const struct vp8_token_struct /* Construct encoding array from tree. */ void vp8_tokens_from_tree(struct vp8_token_struct *, vp8_tree); +void vp8_tokens_from_tree_offset(struct vp8_token_struct *, vp8_tree, + int offset); /* Convert array of token occurrence counts into a table of probabilities -- cgit v1.2.3