From: Kostya Shishkov Date: Fri, 7 Oct 2022 16:09:08 +0000 (+0200) Subject: indeo: fix tile end calculation X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=b606211a50d412bf624f189d995c1560473538cf;p=nihav.git indeo: fix tile end calculation --- 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)); {