ref: 84d08fa9c419897927be33f441e9dc0c83f8d321
parent: a487af8d358ebc12adaea8d8b6664190f1d5ed75
parent: a63e31e81e9d94587de41c57e843e3944902d7fe
author: James Zern <[email protected]>
date: Fri Jun 28 15:48:05 EDT 2013
Merge "fix test compile error"
--- a/vp9/common/vp9_blockd.h
+++ b/vp9/common/vp9_blockd.h
@@ -401,11 +401,13 @@
static INLINE void update_partition_context(MACROBLOCKD *xd,
BLOCK_SIZE_TYPE sb_type,
BLOCK_SIZE_TYPE sb_size) {
- int bsl = b_width_log2(sb_size), bs = (1 << bsl) / 2;
- int bwl = b_width_log2(sb_type);
- int bhl = b_height_log2(sb_type);
- int boffset = b_width_log2(BLOCK_SIZE_SB64X64) - bsl;
- char pcvalue[2] = {~(0xe << boffset), ~(0xf <<boffset)};
+ const int bsl = b_width_log2(sb_size), bs = (1 << bsl) / 2;
+ const int bwl = b_width_log2(sb_type);
+ const int bhl = b_height_log2(sb_type);
+ const int boffset = b_width_log2(BLOCK_SIZE_SB64X64) - bsl;
+ const char pcval0 = ~(0xe << boffset);
+ const char pcval1 = ~(0xf << boffset);
+ const char pcvalue[2] = {pcval0, pcval1};
assert(MAX(bwl, bhl) <= bsl);