diff options
| author | Kostya Shishkov <[email protected]> | 2022-10-07 18:09:08 +0200 |
|---|---|---|
| committer | Kostya Shishkov <[email protected]> | 2022-10-07 14:45:46 +0200 |
| commit | b606211a50d412bf624f189d995c1560473538cf (patch) | |
| tree | d788b5bf97ac239e082999101aa54850ed2b49b3 | |
| parent | 4e1a947f3ab95518501b6df32fc2d991804ff162 (diff) | |
indeo: fix tile end calculation
| -rw-r--r-- | nihav-indeo/src/codecs/ivibr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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)); { |
