mirror of
https://github.com/webmproject/libwebp.git
synced 2025-04-19 07:16:47 +02:00
split expression in two.
makes order of evaluation strictly defined. (cf http://en.wikipedia.org/wiki/Sequence_point) Suggestion by mr dot gnu dot jr at gmail dot com
This commit is contained in:
parent
b2b0090b4c
commit
415dbe4625
@ -494,7 +494,8 @@ static int GetCoeffs(VP8BitReader* const br, ProbaArray prob,
|
|||||||
if (!VP8GetBit(br, p[7])) {
|
if (!VP8GetBit(br, p[7])) {
|
||||||
v = 5 + VP8GetBit(br, 159);
|
v = 5 + VP8GetBit(br, 159);
|
||||||
} else {
|
} else {
|
||||||
v = 7 + 2 * VP8GetBit(br, 165) + VP8GetBit(br, 145);
|
v = 7 + 2 * VP8GetBit(br, 165);
|
||||||
|
v += VP8GetBit(br, 145);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const uint8_t* tab;
|
const uint8_t* tab;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user