From 456e0864dd04a085aee702b77fad7a9869d03b86 Mon Sep 17 00:00:00 2001 From: Jingning Han Date: Thu, 19 Jan 2017 16:04:26 -0800 Subject: [PATCH] Fix enc/dec mismatch due to ext-partition-type in cb4x4 mode This commit fixes an enc/dec mismatch issue in ext-partition-type in the cb4x4 mode. BUG=aomedia:137 Change-Id: I19f538a967a6059a40b1668eed076bc315b46149 --- av1/common/onyxc_int.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/av1/common/onyxc_int.h b/av1/common/onyxc_int.h index ca93bef8c..d0517c1c6 100644 --- a/av1/common/onyxc_int.h +++ b/av1/common/onyxc_int.h @@ -673,7 +673,7 @@ static INLINE void update_ext_partition_context(MACROBLOCKD *xd, int mi_row, BLOCK_SIZE bsize, PARTITION_TYPE partition) { if (bsize >= BLOCK_8X8) { - const int bsl = b_width_log2_lookup[bsize], hbs = (1 << bsl) / 4; + const int hbs = mi_size_wide[bsize] / 2; BLOCK_SIZE bsize2 = get_subsize(bsize, PARTITION_SPLIT); switch (partition) { case PARTITION_SPLIT: -- GitLab