diff --git a/src/encoder.rs b/src/encoder.rs index 41b3cab..1c84a9a 100644 --- a/src/encoder.rs +++ b/src/encoder.rs @@ -38,7 +38,9 @@ impl LessEncoder { let bit_depth = y4m_frame.luma_bit_depth(); - if let (Planes::YCbCr(_), BitDepth::Depth12, false) = (&y4m_frame.planes, &bit_depth, width % 4 == 0) { + if let (Planes::YCbCr(_), BitDepth::Depth12, false) = + (&y4m_frame.planes, &bit_depth, width % 4 == 0) + { return Err(Error::DataShapeProblem { msg: "for bit depth 12 color, width must be divisible by 4", #[cfg(feature = "backtrace")]