diff --git a/src/mask.rs b/src/mask.rs index 23ea7ab..2e69cb8 100644 --- a/src/mask.rs +++ b/src/mask.rs @@ -153,21 +153,21 @@ impl<'core> Filter<'core> for Mask<'core> { SampleType::Integer => { let depth = from_property(self.source.info().format).bits_per_sample(); match depth { - _ if depth <= 8 => filter_for_int::( + 0..=8 => filter_for_int::( &mut frame, src_frame, depth, average, self.luma_scaling, ), - _ if 8 < depth && depth <= 16 => filter_for_int::( + 9..=16 => filter_for_int::( &mut frame, src_frame, depth, average, self.luma_scaling, ), - _ if 16 < depth && depth <= 32 => filter_for_int::( + 17..=32 => filter_for_int::( &mut frame, src_frame, depth,