]> git.nihav.org Git - nihav.git/commitdiff
indeo/ivi: init codebook for transparency plane
authorKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 13 Dec 2019 18:11:39 +0000 (19:11 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 13 Dec 2019 18:11:39 +0000 (19:11 +0100)
nihav-indeo/src/codecs/ivibr.rs

index 53ee9e91cad6d3be1c320ea4411be6ad5003cad7..b30ce9642f2b0113cb8dd1cff293071ed5067992 100644 (file)
@@ -171,6 +171,7 @@ fn read_trans_band_header(br: &mut BitReader, w: usize, h: usize, dst: &mut [i16
     for i in 0..cb.len {
         cb.bits[i] = br.read(4)? as u8;
     }
+    cb = cb.init();
     br.align();
 
 let tile_start = br.tell();