Skip to content

Commit

Permalink
remove dead code branch
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Oct 20, 2024
1 parent 0c2200c commit 09881e1
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions libheif/api/libheif/heif.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3711,14 +3711,9 @@ struct heif_error heif_context_encode_thumbnail(struct heif_context* ctx,


if (out_image_handle) {
if (thumbnail_image) {
*out_image_handle = new heif_image_handle;
(*out_image_handle)->image = thumbnail_image;
(*out_image_handle)->context = ctx->context;
}
else {
*out_image_handle = nullptr;
}
*out_image_handle = new heif_image_handle;
(*out_image_handle)->image = thumbnail_image;
(*out_image_handle)->context = ctx->context;
}

return heif_error_success;
Expand Down

0 comments on commit 09881e1

Please sign in to comment.