From b606211a50d412bf624f189d995c1560473538cf Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Fri, 7 Oct 2022 18:09:08 +0200 Subject: [PATCH] indeo: fix tile end calculation --- nihav-indeo/src/codecs/ivibr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nihav-indeo/src/codecs/ivibr.rs b/nihav-indeo/src/codecs/ivibr.rs index d501953..72a9480 100644 --- a/nihav-indeo/src/codecs/ivibr.rs +++ b/nihav-indeo/src/codecs/ivibr.rs @@ -601,7 +601,7 @@ impl IVIDecoder { } br.align(); validate!(len > 0); - let tile_end = tile_start + len * 8; + let tile_end = (tile_start & !7) + len * 8; validate!(tile_end > br.tell()); validate!(tile_end <= br.tell() + (br.left() as usize)); { -- 2.39.5