summaryrefslogtreecommitdiff
path: root/vp8/common/treecoder.h
diff options
context:
space:
mode:
authorJohn Koleszar <jkoleszar@google.com>2010-08-09 13:27:26 -0400
committerJohn Koleszar <jkoleszar@google.com>2010-08-11 13:49:12 -0400
commit392a958274f6456add66363ae2dfdfc060b94fe9 (patch)
tree7222c7cb7f44366f7fba11095a82d8026226247b /vp8/common/treecoder.h
parentc0ba42d3c0e8f28422c819e7b93413224a5cf2cb (diff)
downloadlibvpx-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/treecoder.h')
-rw-r--r--vp8/common/treecoder.h2
1 files changed, 2 insertions, 0 deletions
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