Skip to content

Commit

Permalink
fix: set output grid image in heif_context_encode_grid()
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Oct 22, 2024
1 parent 7dd21c0 commit bee0699
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libheif/api/libheif/heif.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3496,6 +3496,8 @@ struct heif_error heif_context_encode_grid(struct heif_context* ctx,
return addGridResult.error.error_struct(ctx->context.get());
}

out_grid = addGridResult.value;

// Mark as primary image
if (ctx->context->is_primary_image_set() == false) {
ctx->context->set_primary_image(out_grid);
Expand Down

0 comments on commit bee0699

Please sign in to comment.