From: Kostya Shishkov Date: Thu, 6 Oct 2022 16:17:51 +0000 (+0200) Subject: indeo: do not align bitstream on empty tiles X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=4e1a947f3ab95518501b6df32fc2d991804ff162;p=nihav.git indeo: do not align bitstream on empty tiles --- 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(()) }