diff --git a/src/util/format/pixel.rs b/src/util/format/pixel.rs index 94e2078..d5ad96c 100644 --- a/src/util/format/pixel.rs +++ b/src/util/format/pixel.rs @@ -303,7 +303,8 @@ impl Pixel { if ptr.is_null() { None - } else { + } + else { Some(Descriptor { ptr }) } } diff --git a/src/util/frame/video.rs b/src/util/frame/video.rs index 91ceb7e..c202573 100644 --- a/src/util/frame/video.rs +++ b/src/util/frame/video.rs @@ -258,7 +258,6 @@ impl Video { match self.format().descriptor() { None => self.height(), - Some(desc) => { let s = desc.log2_chroma_h(); (self.height() + (1 << s) - 1) >> s