Skip to content

Commit

Permalink
Merge pull request #7203 from radarhere/numresolution
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jun 8, 2023
2 parents 7c53327 + 15edb6d commit e3cca42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libImaging/Jpeg2KEncode.c
Expand Up @@ -464,7 +464,7 @@ j2k_encode_entry(Imaging im, ImagingCodecState state) {
}

if (!context->num_resolutions) {
while (tile_width < (1 << (params.numresolution - 1U)) || tile_height < (1 << (params.numresolution - 1U))) {
while (tile_width < (1U << (params.numresolution - 1U)) || tile_height < (1U << (params.numresolution - 1U))) {
params.numresolution -= 1;
}
}
Expand Down

0 comments on commit e3cca42

Please sign in to comment.