Commit b9f12132 authored by Luca Barbato's avatar Luca Barbato

Make sure we do not test invalid candidates to begin with

parent be2f84a1
Pipeline #1770 failed with stages
in 31 minutes and 27 seconds
......@@ -1492,9 +1492,7 @@ fn rdo_partition_simple<T: Pixel, W: Writer>(
) -> Option<f64> {
let subsize = bsize.subsize(partition);
if subsize == BlockSize::BLOCK_INVALID {
return None;
}
debug_assert!(subsize != BlockSize::BLOCK_INVALID);
let cost = if bsize >= BlockSize::BLOCK_8X8 {
let w: &mut W = if cw.bc.cdef_coded { w_post_cdef } else { w_pre_cdef };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment