From 5632ebed19fc472dae0cbe26a89552af0ee814dd Mon Sep 17 00:00:00 2001
From: Wan-Teh Chang <[EMAIL REDACTED]>
Date: Tue, 16 Jul 2024 15:40:50 -0700
Subject: [PATCH] Fix a copy-paste error in get_partition()
Fix Coverity defect CID 329379:
original: sshigh * 2 == bhigh looks like the original copy.
CID 329379: (#1 of 1): Copy-paste error (COPY_PASTE_ERROR)
copy_paste_error: bhigh in sswide * 2 == bhigh looks like a
copy-paste error.
Should it say bwide instead?
This bug was introduced in
https://aomedia-review.googlesource.com/c/aom/+/20901.
Change-Id: I289fd7bb8bfe3856d6ab2a5bcb10faadb8ff9cdd
---
av1/common/av1_common_int.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/av1/common/av1_common_int.h b/av1/common/av1_common_int.h
index 17afbf40dd..2d4ff64042 100644
--- a/av1/common/av1_common_int.h
+++ b/av1/common/av1_common_int.h
@@ -1802,7 +1802,7 @@ static INLINE PARTITION_TYPE get_partition(const AV1_COMMON *const cm,
// PARTITION_VERT_B. To distinguish the latter two, check if the right
// half was split.
if (sswide * 4 == bwide) return PARTITION_VERT_4;
- assert(sswide * 2 == bhigh);
+ assert(sswide * 2 == bwide);
if (mbmi_right->bsize == subsize)
return PARTITION_VERT;