shithub: libvpx

Download patch

ref: 278856319bd9f50f42ea973ce1d187354af070f2
parent: 648e30bca6a58039a8d3ec6fa956e8124766c8a9
author: Yaowu Xu <yaowu@google.com>
date: Tue Nov 5 12:13:00 EST 2013

Simply a macro

Change-Id: I1c0c1b92aab33b1e4321b8e584a934fe58e0b324

--- a/vp9/decoder/vp9_detokenize.c
+++ b/vp9/decoder/vp9_detokenize.c
@@ -82,10 +82,9 @@
     continue;                                            \
   }
 
-#define ADJUST_COEF(prob, bits_count)  \
-  do {                                 \
-    if (vp9_read(r, prob))             \
-      val += 1 << bits_count;          \
+#define ADJUST_COEF(prob, bits_count)                   \
+  do {                                                  \
+    val += (vp9_read(r, prob) << bits_count);           \
   } while (0);
 
 static int decode_coefs(VP9_COMMON *cm, const MACROBLOCKD *xd,