From c5cba3186e7382abe6247317c888490493708edd Mon Sep 17 00:00:00 2001 From: Dirk Farin Date: Mon, 18 Nov 2024 23:58:37 +0100 Subject: [PATCH] potential fix of add_and_encode_full_grid() (#1393) --- libheif/image-items/grid.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libheif/image-items/grid.cc b/libheif/image-items/grid.cc index cc1002e346..3621dd0a77 100644 --- libheif/image-items/grid.cc +++ libheif/image-items/grid.cc @@ -735,6 +735,9 @@ Result> 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