diff --git a/src/intra_edge.rs b/src/intra_edge.rs index c58c5175f..77baef781 100644 --- a/src/intra_edge.rs +++ b/src/intra_edge.rs @@ -269,9 +269,13 @@ impl top_has_right: bool, left_has_bottom: bool, ) -> (Self, EdgeIndices) { - let thr = EdgeFlags::TOP_HAS_RIGHT.select(top_has_right); - let lhb = EdgeFlags::LEFT_HAS_BOTTOM.select(left_has_bottom); - let mut branch = EdgeBranch::new(thr.union(lhb), bl); + let mut branch = EdgeBranch::new( + EdgeFlags::union_all([ + EdgeFlags::TOP_HAS_RIGHT.select(top_has_right), + EdgeFlags::LEFT_HAS_BOTTOM.select(left_has_bottom), + ]), + bl, + ); if bl == BL_16X16 { let mut n = 0; while n < B as u8 {