Skip to content

Commit

Permalink
This fixes the bug when a resolution has only two rows.
Browse files Browse the repository at this point in the history
  • Loading branch information
aous72 committed Feb 5, 2024
1 parent 5dcfe93 commit 3c3bb0c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/codestream/ojph_resolution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,10 @@ namespace ojph {
bands[1].push_line();
child_res->push_line();
}
irrev_vert_wvlt_K(lines + 2, lines + 5,
false, width);
if (cur_line >= 2)
irrev_vert_wvlt_K(lines + 2, lines + 5, false, width);
else
irrev_vert_wvlt_K(lines, lines + 5, false, width);
irrev_horz_wvlt_fwd_tx(lines + 5, bands[2].get_line(),
bands[3].get_line(), width, horz_even);
bands[2].push_line();
Expand Down

0 comments on commit 3c3bb0c

Please sign in to comment.