Fix mix-up in pt token indexing.

This fixes uninitialized reads in the trellis, and probably makes the
trellis do something again.

Change-Id: Ifac8dae9aa77574bde0954a71d4571c5c556df3c
This commit is contained in:
Ronald S. Bultje
2013-03-28 09:24:29 -07:00
parent 35dc9f5546
commit 9eea9fa206
4 changed files with 4 additions and 5 deletions

View File

@@ -291,7 +291,7 @@ static void tokenize_b(VP9_COMP *cpi,
#endif
token_cache[c] = token;
pt = vp9_get_coef_context(scan, nb, pad, token_cache, c, default_eob);
pt = vp9_get_coef_context(scan, nb, pad, token_cache, c + 1, default_eob);
++t;
} while (c < eob && ++c < seg_eob);
#if CONFIG_CODE_NONZEROCOUNT