From: Kostya Shishkov Date: Sun, 5 May 2024 16:46:04 +0000 (+0200) Subject: armovie: ignore zero video codec parameters X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=b108a323998abb1a51176f6694ae71cfe2f750d4;p=nihav.git armovie: ignore zero video codec parameters --- diff --git a/nihav-acorn/src/demuxers/armovie.rs b/nihav-acorn/src/demuxers/armovie.rs index 64d222f..b2bf684 100644 --- a/nihav-acorn/src/demuxers/armovie.rs +++ b/nihav-acorn/src/demuxers/armovie.rs @@ -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()?;