game: fix or silence clippy warnings
[nihav.git] / nihav-game / src / demuxers / vmd.rs
index c6da8f46d6810a0603d9543193f158652daaacc8..3c6e1526cc365bdac8d19ca27969be44149b0d1e 100644 (file)
@@ -160,7 +160,7 @@ impl<'a> DemuxCore<'a> for VMDDemuxer<'a> {
 
         let is_video = cur_frame.chtype == CHTYPE_VIDEO;
         let mut buf: Vec<u8> = Vec::with_capacity(FRAME_HDR_SIZE + (cur_frame.size as usize));
-        if !(is_video && self.is_indeo) && !(!is_video && self.is_lhaud) {
+        if !((is_video && self.is_indeo) || (!is_video && self.is_lhaud)) {
             buf.extend_from_slice(&cur_frame.hdr);
             buf.resize(FRAME_HDR_SIZE + (cur_frame.size as usize), 0);
             self.src.read_buf(&mut buf[FRAME_HDR_SIZE..])?;