From b108a323998abb1a51176f6694ae71cfe2f750d4 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sun, 5 May 2024 18:46:04 +0200 Subject: [PATCH] armovie: ignore zero video codec parameters --- nihav-acorn/src/demuxers/armovie.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()?; -- 2.39.5