[NORMATIVE] Fix top right check condition in vert_a
Allow the right side rectangular block to access the top right
neighbor if available in vert_a partition.
BUG=aomedia:1343
Change-Id: I92369676ae1bea2d6dd5f09af612f4177560ae29
diff --git a/av1/common/mvref_common.c b/av1/common/mvref_common.c
index 59f3eb8..cb9ee7f 100644
--- a/av1/common/mvref_common.c
+++ b/av1/common/mvref_common.c
@@ -391,7 +391,8 @@
// not have a top right as it is decoded before the right hand
// rectangle of the partition
if (xd->mi[0]->mbmi.partition == PARTITION_VERT_A) {
- if (mask_row & bs) has_tr = 0;
+ if (xd->n8_w == xd->n8_h)
+ if (mask_row & bs) has_tr = 0;
}
#endif // CONFIG_EXT_PARTITION_TYPES
diff --git a/test/decode_to_md5.sh b/test/decode_to_md5.sh
index e02a3c8..a1b2674 100755
--- a/test/decode_to_md5.sh
+++ b/test/decode_to_md5.sh
@@ -57,7 +57,7 @@
decode_to_md5_av1() {
# expected MD5 sum for the last frame.
- local expected_md5="155facd9ade570f14502bbfcaaeeca06"
+ local expected_md5="0f6429cfe97323627f3af72af39fa44d"
local file="${AV1_IVF_FILE}"
# TODO(urvang): Check in the encoded file (like libvpx does) to avoid