From 859e6a60f8eb69961683970cd860b2d86393c40d Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Fri, 13 Dec 2019 19:11:39 +0100 Subject: [PATCH] indeo/ivi: init codebook for transparency plane --- nihav-indeo/src/codecs/ivibr.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/nihav-indeo/src/codecs/ivibr.rs b/nihav-indeo/src/codecs/ivibr.rs index 53ee9e9..b30ce96 100644 --- a/nihav-indeo/src/codecs/ivibr.rs +++ b/nihav-indeo/src/codecs/ivibr.rs @@ -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(); -- 2.39.5