Skip to content

Commit 4a223b9

Browse files
committed
Fix: nlt_type3[i] was not initialized when get_nonlinear_transform returns false
1 parent a0ae0ee commit 4a223b9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/codestream/ojph_tile.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,9 @@ namespace ojph {
276276
"(bit_depth = %d, is_signed = %s) from NLT marker segment, "
277277
"for component %d", i, num_bits[i],
278278
is_signed[i] ? "True" : "False", bd, is ? "True" : "False");
279+
if (result == false) {
280+
nlt_type3[i] = param_nlt::nonlinearity::OJPH_NLT_NO_NLT;
281+
}
279282
cur_line[i] = 0;
280283
reversible[i] = codestream->get_coc(i)->is_reversible();
281284
}

0 commit comments

Comments
 (0)