Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions libheif/api/libheif/heif_uncompressed.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ heif_error heif_context_add_empty_unci_image(heif_context* ctx,
Result<std::shared_ptr<ImageItem_uncompressed>> unciImageResult;
unciImageResult = ImageItem_uncompressed::add_unci_item(ctx->context.get(), parameters, encoding_options, prototype->image);

// mark the new image as primary image

if (ctx->context->is_primary_image_set() == false) {
ctx->context->set_primary_image(*unciImageResult);
}

if (encoding_options) {
heif_encoding_options_free(default_options);
}
Expand Down
Loading