shithub: libvpx

Download patch

ref: b527c4dbb759e40ebbc699086f3ff67f858d481c
parent: 19a1ba1e91fe3b35f69c54e077ad513397dae3d1
author: Paul Wilkins <paulwilkins@google.com>
date: Wed Nov 14 09:33:28 EST 2012

Segment mode coding bug.

There are now more than 16 possible modes so 5
bits required for segment mode feature.

Note that it is likely that the mode feature and how it is
coded will change but for now the 4 bits was a bug.

Change-Id: I63348ae3a9cc31566a656c2dc78f09f5e1a9dcc9

--- a/vp9/common/seg_common.c
+++ b/vp9/common/seg_common.c
@@ -11,7 +11,8 @@
 #include "vp9/common/seg_common.h"
 
 static const int segfeaturedata_signed[SEG_LVL_MAX] = { 1, 1, 0, 0, 0, 0 };
-static const int seg_feature_data_bits[SEG_LVL_MAX] = { QINDEX_BITS, 6, 4, 4, 6, 2 };
+static const int seg_feature_data_bits[SEG_LVL_MAX] =
+                 { QINDEX_BITS, 6, 4, 5, 6, 2 };
 
 // These functions provide access to new segment level features.
 // Eventually these function may be "optimized out" but for the moment,