From eeb1afb74fe5ea6102f26020014ff5c4f09ff1a9 Mon Sep 17 00:00:00 2001 From: Dirk Farin Date: Sun, 6 Oct 2024 16:23:50 +0200 Subject: [PATCH] (rename variable) --- libheif/context.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libheif/context.cc b/libheif/context.cc index af5359f6d2..1c6084acc1 100644 --- a/libheif/context.cc +++ b/libheif/context.cc @@ -975,18 +975,18 @@ Result> HeifContext::decode_image(heif_item_id I const struct heif_decoding_options& options, bool decode_only_tile, uint32_t tx, uint32_t ty) const { - std::shared_ptr imginfo; + std::shared_ptr imgitem; if (m_all_images.find(ID) != m_all_images.end()) { - imginfo = m_all_images.find(ID)->second; + imgitem = m_all_images.find(ID)->second; } // Note: this may happen, for example when an 'iden' image references a non-existing image item. - if (imginfo == nullptr) { + if (imgitem == nullptr) { return Error(heif_error_Invalid_input, heif_suberror_Nonexisting_item_referenced); } - auto decodingResult = imginfo->decode_image(options, decode_only_tile, tx, ty); + auto decodingResult = imgitem->decode_image(options, decode_only_tile, tx, ty); if (decodingResult.error) { return decodingResult.error; } @@ -1016,7 +1016,7 @@ Result> HeifContext::decode_image(heif_item_id I } } - img->add_warnings(imginfo->get_decoding_warnings()); + img->add_warnings(imgitem->get_decoding_warnings()); return img; }