mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
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
This commit is contained in:
parent
cd8c3ba78f
commit
ed278e2279
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user