Commit 6888f3e840 for aom

commit 6888f3e8407870613b3f33ddeb7b17ff6b2db99e
Author: Yunqing Wang <yunqingwang@google.com>
Date:   Tue Jun 23 11:29:32 2026 -0700

    Fix a static analysis warning

    Added assertions to quiet a static analysis warning reported by
    Coverity (Coverity CID 561268).

    Change-Id: I0671a1c0a5e6eb420ed2039e7cdae85e201f44d4

diff --git a/av1/encoder/partition_search.c b/av1/encoder/partition_search.c
index f162ec154d..5da753d943 100644
--- a/av1/encoder/partition_search.c
+++ b/av1/encoder/partition_search.c
@@ -4069,6 +4069,8 @@ static void prune_part4_using_sms(AV1_COMP *const cpi, MACROBLOCK *x,

   const BLOCK_SIZE subsize_h4 = get_partition_subsize(bsize, PARTITION_HORZ_4);
   const BLOCK_SIZE subsize_v4 = get_partition_subsize(bsize, PARTITION_VERT_4);
+  assert(subsize_h4 != BLOCK_INVALID);
+  assert(subsize_v4 != BLOCK_INVALID);

   const int h_mi = mi_size_high[bsize];
   const int w_mi = mi_size_wide[bsize];