Skip to content

Commit

Permalink
heif-info: only show tiling info when image uses tiling
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Nov 18, 2024
1 parent 8a139a6 commit 8363b2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/heif_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ int main(int argc, char** argv)
if (err.code) {
std::cerr << "Error while trying to get image tiling information: " << err.message << "\n";
}
else if (tiling.num_columns > 0) {
else if (tiling.num_columns != 1 || tiling.num_rows != 1) {
std::cout << " tiles: " << tiling.num_columns << "x" << tiling.num_rows
<< ", tile size: " << tiling.tile_width << "x" << tiling.tile_height << "\n";
}
Expand Down

0 comments on commit 8363b2c

Please sign in to comment.