From 415dbe4625aa65b1f803ecbfb5fac9371eb8a472 Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Wed, 8 Jun 2011 08:59:14 -0700 Subject: [PATCH] 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 --- src/dec/vp8.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dec/vp8.c b/src/dec/vp8.c index 946ff6c1..144bd501 100644 --- a/src/dec/vp8.c +++ b/src/dec/vp8.c @@ -494,7 +494,8 @@ static int GetCoeffs(VP8BitReader* const br, ProbaArray prob, if (!VP8GetBit(br, p[7])) { v = 5 + VP8GetBit(br, 159); } else { - v = 7 + 2 * VP8GetBit(br, 165) + VP8GetBit(br, 145); + v = 7 + 2 * VP8GetBit(br, 165); + v += VP8GetBit(br, 145); } } else { const uint8_t* tab;