From 4e1a947f3ab95518501b6df32fc2d991804ff162 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 6 Oct 2022 18:17:51 +0200 Subject: [PATCH] indeo: do not align bitstream on empty tiles --- 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 a333b3a..d501953 100644 --- a/nihav-indeo/src/codecs/ivibr.rs +++ b/nihav-indeo/src/codecs/ivibr.rs @@ -628,6 +628,7 @@ impl IVIDecoder { } self.decode_tile(br, &band, tile_no, tr, tr_dc)?; + br.align(); let skip_part = tile_end - br.tell(); br.skip(skip_part as u32)?; } else { @@ -819,7 +820,6 @@ br.skip(skip_part as u32)?; } dstidx += stride * band.mb_size; } - br.align(); Ok(()) } -- 2.39.5