From ed278e2279df7da0b64d6ecb1899f3055957706c Mon Sep 17 00:00:00 2001 From: Scott LaVarnway Date: Mon, 26 Mar 2012 11:44:04 -0400 Subject: [PATCH] Removed unnecessary lookup The lookup value is the same as the index. The index in this case is either a 0 or 1. Change-Id: I0432dfcbea9e7bb20bca7574e25fb1fd8a51c8e9 --- src/dec/vp8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dec/vp8.c b/src/dec/vp8.c index bff372db..cceebf0b 100644 --- a/src/dec/vp8.c +++ b/src/dec/vp8.c @@ -462,7 +462,7 @@ typedef const uint8_t (*ProbaArray)[NUM_CTX][NUM_PROBAS]; // for const-casting // (and 0 if there's no coeff at all) static int GetCoeffs(VP8BitReader* const br, ProbaArray prob, int ctx, const quant_t dq, int n, int16_t* out) { - const uint8_t* p = prob[kBands[n]][ctx]; + const uint8_t* p = prob[n][ctx]; // n is either 0 or 1 here. kBands[n] is not necessary. if (!VP8GetBit(br, p[0])) { // first EOB is more a 'CBP' bit. return 0; }