X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-commonfmt%2Fsrc%2Fcodecs%2Fcinepakenc.rs;fp=nihav-commonfmt%2Fsrc%2Fcodecs%2Fcinepakenc.rs;h=4729cd6050fb3f4a228ad20064189f597f78dfa6;hb=10dedf0d7c3c2fd9b101881ae6a01e6338a958e1;hp=c6af8f61cdd9f71e55ef72a0e1cedf215d10ebc1;hpb=405cec9eed5d7f58440ec8495f5cbc1f5c6fee40;p=nihav.git diff --git a/nihav-commonfmt/src/codecs/cinepakenc.rs b/nihav-commonfmt/src/codecs/cinepakenc.rs index c6af8f6..4729cd6 100644 --- a/nihav-commonfmt/src/codecs/cinepakenc.rs +++ b/nihav-commonfmt/src/codecs/cinepakenc.rs @@ -883,7 +883,7 @@ impl CinepakEncoder { let mut skip = true; for mask in self.masks.masks.iter() { bw.write_u32be(*mask)?; - if *mask == 0 { continue; } + if *mask == 0 && skip { continue; } let mut bit = 1 << 31; while bit > 0 { if skip {