Skip to content

Commit

Permalink
fix logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Oct 22, 2024
1 parent 91cc0af commit f700f71
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions libheif/image-items/unc_image.cc
Original file line number Diff line number Diff line change
Expand Up @@ -468,11 +468,12 @@ void ImageItem_uncompressed::get_tile_size(uint32_t& w, uint32_t& h) const
auto uncC = get_file()->get_property<Box_uncC>(get_id());

if (!ispe || !uncC) {
w=h=0;
w = h = 0;
}
else {
w = ispe->get_width() / uncC->get_number_of_tile_columns();
h = ispe->get_height() / uncC->get_number_of_tile_rows();
}

w = ispe->get_width() / uncC->get_number_of_tile_columns();
h = ispe->get_height() / uncC->get_number_of_tile_rows();
}


Expand Down

0 comments on commit f700f71

Please sign in to comment.