]> git.nihav.org Git - nihav.git/commitdiff
indeo: do not align bitstream on empty tiles
authorKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 6 Oct 2022 16:17:51 +0000 (18:17 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 6 Oct 2022 16:17:51 +0000 (18:17 +0200)
nihav-indeo/src/codecs/ivibr.rs

index a333b3a7dba9f67bb8a7e7286798d57ff9d0fc37..d501953225066ebb320513d0231aaaec7487d8b7 100644 (file)
@@ -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(())
     }