armovie: ignore zero video codec parameters
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sun, 5 May 2024 16:46:04 +0000 (18:46 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sun, 5 May 2024 16:46:04 +0000 (18:46 +0200)
nihav-acorn/src/demuxers/armovie.rs

index 64d222f36593210ee6c6f162608b0d879ae883d9..b2bf68467b27e993f17fe0c39ba62ed208992ea0 100644 (file)
@@ -218,7 +218,7 @@ impl<'a> RawDemuxCore<'a> for ARMovieDemuxer<'a> {
         let width = parse_int(&width)?;
         let height              = self.src.read_string()?;
         let height = parse_int(&height)?;
-        validate!((video_codec <= 0) ^ (width > 0 && height > 0));
+        validate!((video_codec <= 0) || (width > 0 && height > 0));
         let width  = width as usize;
         let height = height as usize;
         let vformat             = self.src.read_string()?;