Commit 27885631 authored by Yaowu Xu's avatar Yaowu Xu

Simply a macro

Change-Id: I1c0c1b92aab33b1e4321b8e584a934fe58e0b324
parent 648e30bc
......@@ -82,10 +82,9 @@ static const vp9_prob cat6_prob[15] = {
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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment