Skip to content

Commit

Permalink
(cleanup)
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Oct 6, 2024
1 parent e18ac58 commit b0b9975
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions libheif/image-items/image_item.cc
Original file line number Diff line number Diff line change
Expand Up @@ -716,10 +716,12 @@ Result<std::shared_ptr<HeifPixelImage>> ImageItem::decode_image(const struct hei
// TODO: for tile decoding, we should require that all transformations are ignored or processed

if (options.ignore_transformations == false) {
std::vector<std::shared_ptr<Box>> properties;
auto ipco_box = file->get_ipco_box();
auto ipma_box = file->get_ipma_box();
error = ipco_box->get_properties_for_item_ID(m_id, ipma_box, properties);
Result<std::vector<std::shared_ptr<Box>>> propertiesResult = get_properties();
if (propertiesResult.error) {
return propertiesResult.error;
}

const std::vector<std::shared_ptr<Box>>& properties = *propertiesResult;

for (const auto& property : properties) {
if (auto rot = std::dynamic_pointer_cast<Box_irot>(property)) {
Expand Down

0 comments on commit b0b9975

Please sign in to comment.