Skip to content

Commit

Permalink
potential fix of add_and_encode_full_grid() (#1393)
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Nov 18, 2024
1 parent f8426fd commit c5cba31
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libheif/image-items/grid.cc
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,9 @@ Result<std::shared_ptr<ImageItem_Grid>> ImageItem_Grid::add_and_encode_full_grid
if (encodingResult.error) {
return encodingResult.error;
}
else {
out_tile = *encodingResult;
}

heif_item_id tile_id = out_tile->get_id();
file->get_infe_box(tile_id)->set_hidden_item(true); // only show the full grid
Expand Down

0 comments on commit c5cba31

Please sign in to comment.