From 248e094ea89a82713e902eaaac61c8896ed9b426 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Wed, 11 Feb 2026 18:34:54 +0100 Subject: [PATCH] indeo3: relax size check borg95.avi (and maybe other Indeo 3.1 videos) declare size to be 16 bits more than real payload size. --- nihav-indeo/src/codecs/indeo3.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nihav-indeo/src/codecs/indeo3.rs b/nihav-indeo/src/codecs/indeo3.rs index 8adbc31..21b6a45 100644 --- a/nihav-indeo/src/codecs/indeo3.rs +++ b/nihav-indeo/src/codecs/indeo3.rs @@ -916,7 +916,7 @@ impl NADecoder for Indeo3Decoder { if (frameno ^ hdr_2 ^ size ^ FRMH_TAG) != check { return Err(DecoderError::InvalidData); } - if i64::from(size) > br.left() { + if i64::from(size) > br.left() + 16 { return Err(DecoderError::InvalidData); } -- 2.39.5