From: Kostya Shishkov Date: Sat, 3 Feb 2018 11:52:48 +0000 (+0100) Subject: io: fix codebook LUT generation corner case X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=26af5ca8242870eed88107e49de3737c4b631015;p=nihav.git io: fix codebook LUT generation corner case --- diff --git a/src/io/codebook.rs b/src/io/codebook.rs index 89641f2..c867c27 100644 --- a/src/io/codebook.rs +++ b/src/io/codebook.rs @@ -158,7 +158,7 @@ fn build_esc_lut(table: &mut Vec, for code in &bucket.codes { let bits = code.bits; - if code.bits < MAX_LUT_BITS { + if code.bits <= MAX_LUT_BITS { fill_lut(table, mode, bucket.offset, code.code, bits, maxlen, code.idx as u32, false); } else {