Skip to content

Commit

Permalink
Fixes a bug when a resolution has one 64bit line.
Browse files Browse the repository at this point in the history
  • Loading branch information
aous72 committed Dec 13, 2024
1 parent 949d376 commit a85e756
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/core/codestream/ojph_resolution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -586,9 +586,19 @@ namespace ojph {
else
{
// vertical transform
si32* sp = aug->line->i32;
for (ui32 i = width; i > 0; --i)
*sp++ <<= 1;
if (aug->line->flags & line_buf::LFT_32BIT)
{
si32* sp = aug->line->i32;
for (ui32 i = width; i > 0; --i)
*sp++ <<= 1;
}
else
{
assert(aug->line->flags & line_buf::LFT_64BIT);
si64* sp = aug->line->i64;
for (ui32 i = width; i > 0; --i)
*sp++ <<= 1;
}
// horizontal transform
rev_horz_ana(atk, bands[2].get_line(),
bands[3].get_line(), aug->line, width, horz_even);
Expand Down

0 comments on commit a85e756

Please sign in to comment.