aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-core/src
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2021-05-20 11:53:22 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2021-05-20 11:53:22 +0200
commit11f1d51e5a08ce44ddcdc308fd2f6d942760e7d4 (patch)
tree1f65d52edd61945b64b0d95cceb97b960cee1a82 /nihav-core/src
parentf8cdb949e5b15fca5b563d9f3ac06083234f0e86 (diff)
downloadnihav-11f1d51e5a08ce44ddcdc308fd2f6d942760e7d4.tar.gz
deflate: fix align() in inflate
Diffstat (limited to 'nihav-core/src')
-rw-r--r--nihav-core/src/compr/deflate.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/nihav-core/src/compr/deflate.rs b/nihav-core/src/compr/deflate.rs
index 7d6fae5..e917519 100644
--- a/nihav-core/src/compr/deflate.rs
+++ b/nihav-core/src/compr/deflate.rs
@@ -174,7 +174,7 @@ impl<'a> CurrentSource<'a> {
fn align(&mut self) {
let b = self.br.bits & 7;
if b != 0 {
- self.skip_cache(8 - (b as u8));
+ self.skip_cache(b);
}
}
fn left(&self) -> isize {