Skip to content

Commit fe61a87

Browse files
committed
Add another assert in topdown partition search
This would help understand one section of split case code in topdown partition search function.
1 parent cfb9ef1 commit fe61a87

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/encoder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2879,6 +2879,7 @@ fn encode_partition_topdown<T: Pixel, W: Writer>(
28792879
}
28802880
PARTITION_SPLIT | PARTITION_HORZ | PARTITION_VERT => {
28812881
if !rdo_output.part_modes.is_empty() {
2882+
debug_assert!(can_split && !must_split);
28822883
// The optimal prediction modes for each split block is known from an rdo_partition_decision() call
28832884
assert!(subsize != BlockSize::BLOCK_INVALID);
28842885

0 commit comments

Comments
 (0)