Make sure encoder finds a valid partition
In some high speed settings, encoder may fail to find any partition
candidates for a superblock. This patch allows the encoder to do another
round of search with more partition choices in these cases.
BUG=aomedia:1528
Change-Id: I9afef9e1adb5d59837f44207a8e1b364166230e7
diff --git a/av1/encoder/block.h b/av1/encoder/block.h
index fc7f9c4..65ee835 100644
--- a/av1/encoder/block.h
+++ b/av1/encoder/block.h
@@ -330,6 +330,7 @@
int comp_group_idx_cost[COMP_GROUP_IDX_CONTEXTS][2];
// Bit flags for pruning tx type search, tx split, etc.
int tx_search_prune[EXT_TX_SET_TYPES];
+ int must_find_valid_partition;
};
static INLINE int is_rect_tx_allowed_bsize(BLOCK_SIZE bsize) {